Package org.apache.solr.spelling
Class SpellingOptions
- java.lang.Object
- 
- org.apache.solr.spelling.SpellingOptions
 
- 
 public class SpellingOptions extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description floataccuracyOptionally restrict the results to have a minimum accuracy level.intalternativeTermCountintcountThe number of suggestions to return, if there are any.org.apache.solr.common.params.SolrParamscustomParamsAny other custom params can be passed through.booleanextendedResultsProvide additional, per implementation, information about the resultsorg.apache.lucene.index.IndexReaderreaderAn optionalIndexReaderorg.apache.lucene.search.spell.SuggestModesuggestModeCollection<Token>tokensThe tokens to spell check
 - 
Constructor SummaryConstructors Constructor Description SpellingOptions()SpellingOptions(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)
 
- 
- 
- 
Field Detail- 
tokenspublic Collection<Token> tokens The tokens to spell check
 - 
readerpublic org.apache.lucene.index.IndexReader reader An optionalIndexReader
 - 
countpublic int count The number of suggestions to return, if there are any. Defaults to 1.
 - 
alternativeTermCountpublic int alternativeTermCount 
 - 
suggestModepublic org.apache.lucene.search.spell.SuggestMode suggestMode 
 - 
extendedResultspublic boolean extendedResults Provide additional, per implementation, information about the results
 - 
accuracypublic float accuracy Optionally restrict the results to have a minimum accuracy level. Per Implementation. By default set to Float.MIN_VALUE.
 - 
customParamspublic org.apache.solr.common.params.SolrParams customParams Any other custom params can be passed through. May be null and is null by default.
 
- 
 - 
Constructor Detail- 
SpellingOptionspublic SpellingOptions() 
 - 
SpellingOptionspublic SpellingOptions(Collection<Token> tokens, int count) 
 - 
SpellingOptionspublic SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader) 
 - 
SpellingOptionspublic SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader, int count) 
 - 
SpellingOptionspublic 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) 
 - 
SpellingOptionspublic 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) 
 
- 
 
-