Package org.apache.solr.spelling
Class SpellingOptions
- java.lang.Object
 - 
- org.apache.solr.spelling.SpellingOptions
 
 
- 
public class SpellingOptions extends Object
 
- 
- 
Field Summary
Fields 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 Summary
Constructors 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
- 
tokens
public Collection<Token> tokens
The tokens to spell check 
- 
reader
public org.apache.lucene.index.IndexReader reader
An optionalIndexReader 
- 
count
public int count
The 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 extendedResults
Provide additional, per implementation, information about the results 
- 
accuracy
public float accuracy
Optionally 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 customParams
Any other custom params can be passed through. May be null and is null by default. 
 - 
 
- 
Constructor Detail
- 
SpellingOptions
public SpellingOptions()
 
- 
SpellingOptions
public SpellingOptions(Collection<Token> tokens, int count)
 
- 
SpellingOptions
public SpellingOptions(Collection<Token> tokens, org.apache.lucene.index.IndexReader reader)
 
- 
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)
 
 - 
 
 -