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 float
accuracy
Optionally restrict the results to have a minimum accuracy level.int
alternativeTermCount
int
count
The number of suggestions to return, if there are any.org.apache.solr.common.params.SolrParams
customParams
Any other custom params can be passed through.boolean
extendedResults
Provide additional, per implementation, information about the resultsorg.apache.lucene.index.IndexReader
reader
An optionalIndexReader
org.apache.lucene.search.spell.SuggestMode
suggestMode
Collection<Token>
tokens
The 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)
-
-