Example usage for org.apache.solr.common.params SpellingParams SPELLCHECK_COLLATE_MAX_COLLECT_DOCS

List of usage examples for org.apache.solr.common.params SpellingParams SPELLCHECK_COLLATE_MAX_COLLECT_DOCS

Introduction

In this page you can find the example usage for org.apache.solr.common.params SpellingParams SPELLCHECK_COLLATE_MAX_COLLECT_DOCS.

Prototype

String SPELLCHECK_COLLATE_MAX_COLLECT_DOCS

To view the source code for org.apache.solr.common.params SpellingParams SPELLCHECK_COLLATE_MAX_COLLECT_DOCS.

Click Source Link

Document

For use with SpellingParams#SPELLCHECK_MAX_COLLATION_TRIES and SpellingParams#SPELLCHECK_COLLATE_EXTENDED_RESULTS .

Usage

From source file:org.springframework.data.solr.core.query.SpellcheckOptions.java

License:Apache License

/**
 * This parameter specifies the maximum number of documents that should be collect when testing potential collations
 * against the index./*from   w w w .  j a  v a2s.  com*/
 *
 * @param nr
 * @return
 */
public SpellcheckOptions maxCollationCollectDocs(long nr) {
    return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_COLLATE_MAX_COLLECT_DOCS, nr);
}

From source file:org.springframework.data.solr.core.query.SpellcheckOptions.java

License:Apache License

/**
 * @return can be {@literal null}./*www  .  j a v a 2  s. c om*/
 */
@Nullable
public Long getMaxCollationCollectDocs() {
    return (Long) params.get(SpellingParams.SPELLCHECK_COLLATE_MAX_COLLECT_DOCS);
}