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

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

Introduction

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

Prototype

String SPELLCHECK_ACCURACY

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

Click Source Link

Document

Certain spelling implementations may allow for an accuracy setting.

Usage

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

License:Apache License

/**
 * Specifies an accuracy value to be used by the spell checking implementation to decide whether a result is
 * worthwhile or not. The value is a float between 0 and 1.
 * //from  w w w  .  j  ava  2 s  . c  om
 * @param nr
 * @return
 */
public SpellcheckOptions accuracy(float nr) {
    return createNewAndAppend(SpellingParams.SPELLCHECK_ACCURACY, nr);
}

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

License:Apache License

/**
 * @return can be {@literal null}.
 */
@Nullable
public Float getAccuracy() {
    return (Float) params.get(SpellingParams.SPELLCHECK_ACCURACY);
}