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

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

Introduction

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

Prototype

String SPELLCHECK_MAX_COLLATION_EVALUATIONS

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

Click Source Link

Document

The maximum number of word correction combinations to rank and evaluate prior to deciding which collation candidates to test against the index.

Usage

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

License:Apache License

/**
 * This parameter specifies the maximum number of word correction combinations to rank and evaluate prior to deciding
 * which collation candidates to test against the index.
 *
 * @param evaluations//from w  ww .  j av  a 2 s  .co m
 * @return
 */
public SpellcheckOptions maxCollationEvaluations(long evaluations) {
    return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_MAX_COLLATION_EVALUATIONS,
            evaluations);
}

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

License:Apache License

/**
 * @return can be {@literal null}./*from   w w  w .  jav a2 s .c o  m*/
 */
@Nullable
public Long getMaxCollationEvaluations() {
    return (Long) params.get(SpellingParams.SPELLCHECK_MAX_COLLATION_EVALUATIONS);
}