Package org.apache.solr.spelling
Class SpellingOptions
java.lang.Object
org.apache.solr.spelling.SpellingOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatOptionally restrict the results to have a minimum accuracy level.intintThe number of suggestions to return, if there are any.org.apache.solr.common.params.SolrParamsAny other custom params can be passed through.booleanProvide additional, per implementation, information about the resultsorg.apache.lucene.index.IndexReaderAn optionalIndexReaderorg.apache.lucene.search.spell.SuggestModeThe tokens to spell check -
Constructor Summary
ConstructorsConstructorDescriptionSpellingOptions(Collection<Token> tokens, int count) SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader) SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count) SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count, int alternativeTermCount, org.apache.lucene.search.spell.SuggestMode suggestMode, boolean extendedResults, float accuracy, org.apache.solr.common.params.SolrParams customParams) SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count, org.apache.lucene.search.spell.SuggestMode suggestMode, boolean extendedResults, float accuracy, org.apache.solr.common.params.SolrParams customParams) -
Method Summary
-
Field Details
-
tokens
The tokens to spell check -
reader
public org.apache.lucene.index.IndexReader readerAn optionalIndexReader -
count
public int countThe number of suggestions to return, if there are any. Defaults to 1. -
alternativeTermCount
public int alternativeTermCount -
suggestMode
public org.apache.lucene.search.spell.SuggestMode suggestMode -
extendedResults
public boolean extendedResultsProvide additional, per implementation, information about the results -
accuracy
public float accuracyOptionally restrict the results to have a minimum accuracy level. Per Implementation. By default set to Float.MIN_VALUE. -
customParams
public org.apache.solr.common.params.SolrParams customParamsAny other custom params can be passed through. May be null and is null by default.
-
-
Constructor Details
-
SpellingOptions
public SpellingOptions() -
SpellingOptions
-
SpellingOptions
-
SpellingOptions
public SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count) -
SpellingOptions
public SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count, org.apache.lucene.search.spell.SuggestMode suggestMode, boolean extendedResults, float accuracy, org.apache.solr.common.params.SolrParams customParams) -
SpellingOptions
public SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count, int alternativeTermCount, org.apache.lucene.search.spell.SuggestMode suggestMode, boolean extendedResults, float accuracy, org.apache.solr.common.params.SolrParams customParams)
-