Package | Description |
---|---|
org.apache.solr.spelling |
APIs and classes used by the
SpellCheckComponent |
Modifier and Type | Field and Description |
---|---|
Token |
ResultEntry.token |
Modifier and Type | Field and Description |
---|---|
Collection<Token> |
SpellingOptions.tokens
The tokens to spell check
|
Modifier and Type | Method and Description |
---|---|
Token |
Token.clone()
Deprecated.
|
Token |
SpellCheckCorrection.getOriginal() |
Modifier and Type | Method and Description |
---|---|
Collection<Token> |
SpellingQueryConverter.convert(String original)
Converts the original query string to a collection of Lucene Tokens.
|
Collection<Token> |
SuggestQueryConverter.convert(String original) |
abstract Collection<Token> |
QueryConverter.convert(String original)
Returns the Collection of
Token s for
the query. |
Map<Token,LinkedHashMap<String,Integer>> |
SpellingResult.getSuggestions()
All the suggestions.
|
Map<Token,Integer> |
SpellingResult.getTokenFrequency() |
Collection<Token> |
SpellingResult.getTokens() |
Modifier and Type | Method and Description |
---|---|
void |
SpellingResult.add(Token token,
List<String> suggestions)
Adds a whole bunch of suggestions, and does not worry about frequency.
|
void |
SpellingResult.add(Token token,
String suggestion,
int docFreq)
Suggestions must be added with the best suggestion first.
|
void |
SpellingResult.addFrequency(Token token,
int docFreq)
Adds an original token with its document frequency
|
LinkedHashMap<String,Integer> |
SpellingResult.get(Token token)
Gets the suggestions for the given token.
|
Integer |
SpellingResult.getTokenFrequency(Token token)
The token frequency of the input token in the collection
|
void |
SpellCheckCorrection.setOriginal(Token original) |
Modifier and Type | Method and Description |
---|---|
protected void |
SpellingQueryConverter.analyze(Collection<Token> result,
String text,
int offset,
int flagsAttValue) |
void |
SpellingResult.setTokens(Collection<Token> tokens) |
Constructor and Description |
---|
PossibilityIterator(Map<Token,LinkedHashMap<String,Integer>> suggestions,
int maximumRequiredSuggestions,
int maxEvaluations,
boolean overlap)
We assume here that the passed-in inner LinkedHashMaps are already sorted
in order of "Best Possible Correction".
|
SpellingOptions(Collection<Token> tokens,
IndexReader reader) |
SpellingOptions(Collection<Token> tokens,
IndexReader reader,
int count) |
SpellingOptions(Collection<Token> tokens,
IndexReader reader,
int count,
int alternativeTermCount,
SuggestMode suggestMode,
boolean extendedResults,
float accuracy,
SolrParams customParams) |
SpellingOptions(Collection<Token> tokens,
IndexReader reader,
int count,
SuggestMode suggestMode,
boolean extendedResults,
float accuracy,
SolrParams customParams) |
SpellingOptions(Collection<Token> tokens,
int count) |
SpellingResult(Collection<Token> tokens) |
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.