|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.spelling.SolrSpellChecker
public abstract class SolrSpellChecker
Refer to SpellCheckComponent for more details.
Field Summary | |
---|---|
protected Analyzer |
analyzer
|
static String |
DEFAULT_DICTIONARY_NAME
|
static String |
DICTIONARY_NAME
|
protected String |
name
Dictionary name |
Constructor Summary | |
---|---|
SolrSpellChecker()
|
Method Summary | |
---|---|
abstract void |
build(SolrCore core,
SolrIndexSearcher searcher)
(re)Builds the spelling index. |
String |
getDictionaryName()
|
Analyzer |
getQueryAnalyzer()
|
SpellingResult |
getSuggestions(Collection<Token> tokens,
IndexReader reader)
Assumes count = 1, onlyMorePopular = false, extendedResults = false |
SpellingResult |
getSuggestions(Collection<Token> tokens,
IndexReader reader,
boolean onlyMorePopular,
boolean extendedResults)
Assumes count = 1. |
SpellingResult |
getSuggestions(Collection<Token> tokens,
IndexReader reader,
int count)
Assumes onlyMorePopular = false, extendedResults = false |
abstract SpellingResult |
getSuggestions(Collection<Token> tokens,
IndexReader reader,
int count,
boolean onlyMorePopular,
boolean extendedResults)
Get suggestions for the given query. |
String |
init(org.apache.solr.common.util.NamedList config,
SolrCore core)
|
abstract void |
reload()
Reloads the index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DICTIONARY_NAME
public static final String DEFAULT_DICTIONARY_NAME
protected String name
protected Analyzer analyzer
Constructor Detail |
---|
public SolrSpellChecker()
Method Detail |
---|
public String init(org.apache.solr.common.util.NamedList config, SolrCore core)
public Analyzer getQueryAnalyzer()
public String getDictionaryName()
public abstract void reload() throws IOException
IOException
public abstract void build(SolrCore core, SolrIndexSearcher searcher)
public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader) throws IOException
IOException
getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean)
public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader, int count) throws IOException
IOException
getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean)
public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader, boolean onlyMorePopular, boolean extendedResults) throws IOException
IOException
getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean)
public abstract SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader, int count, boolean onlyMorePopular, boolean extendedResults) throws IOException
SpellingResult.getSuggestions()
suggestions must be ordered by best suggestion first.
tokens
- The Tokens to be spell checked.reader
- The (optional) IndexReader. If there is not IndexReader, than extendedResults are not possiblecount
- The maximum number of suggestions to returnonlyMorePopular
- TODOextendedResults
- TODO
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |