List of usage examples for org.apache.solr.common.params SpellingParams SPELLCHECK_ACCURACY
String SPELLCHECK_ACCURACY
To view the source code for org.apache.solr.common.params SpellingParams SPELLCHECK_ACCURACY.
Click Source Link
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); }