|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.spelling.suggest.SolrSuggester
public class SolrSuggester
Responsible for loading the lookup and dictionary Implementations specified by
the SolrConfig.
Interacts (query/build/reload) with Lucene Suggesters through Lookup
and
Dictionary
Field Summary | |
---|---|
static String |
DEFAULT_DICT_NAME
Name used when an unnamed suggester config is passed |
static String |
DICTIONARY_IMPL
Fully-qualified class of the Dictionary implementation |
static String |
LOCATION
Location of the source data - either a path to a file, or null for the current IndexReader. |
static String |
LOOKUP_IMPL
Fully-qualified class of the Lookup implementation. |
static String |
NAME
Label to identify the name of the suggester |
static String |
STORE_DIR
Name of the location where to persist the dictionary. |
Constructor Summary | |
---|---|
SolrSuggester()
|
Method Summary | |
---|---|
void |
build(SolrCore core,
SolrIndexSearcher searcher)
Build the underlying Lucene Suggester |
String |
getName()
Returns the unique name of the suggester |
SuggesterResult |
getSuggestions(SuggesterOptions options)
Returns suggestions based on the SuggesterOptions passed |
String |
init(NamedList<?> config,
SolrCore core)
Uses the config and the core to initialize the underlying
Lucene suggester |
void |
reload(SolrCore core,
SolrIndexSearcher searcher)
Reloads the underlying Lucene Suggester |
long |
sizeInBytes()
Returns the size of the in-memory data structure used by the underlying lookup implementation |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DICT_NAME
public static final String NAME
public static final String LOCATION
public static final String LOOKUP_IMPL
Lookup
implementation.
public static final String DICTIONARY_IMPL
Dictionary
implementation
public static final String STORE_DIR
Constructor Detail |
---|
public SolrSuggester()
Method Detail |
---|
public String init(NamedList<?> config, SolrCore core)
config
and the core
to initialize the underlying
Lucene suggester
public void build(SolrCore core, SolrIndexSearcher searcher) throws IOException
IOException
public void reload(SolrCore core, SolrIndexSearcher searcher) throws IOException
IOException
public SuggesterResult getSuggestions(SuggesterOptions options) throws IOException
SuggesterOptions
passed
IOException
public String getName()
public long sizeInBytes()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |