|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchEngineSpellCheckManager
The spell check manager allows to perform spell check index level operations. It also allows to perform operations using the spell check, for example to suggest words for a given word.
The spell check manager can be configured using LuceneEnvironment.SpellCheck
settings.
| Method Summary | |
|---|---|
boolean |
concurrentRebuild()
Same as rebuild() but executes the rebuild of each sub index using Compass
built in thread pool |
void |
concurrentRefresh()
Same as refresh() but executes the refresh of each sub index using Compass
built in thread pool. |
void |
deleteIndex()
Deletes the spell check index. |
void |
deleteIndex(String subIndex)
Deletes the spell check index for the given sub index. |
boolean |
isRebuildNeeded()
Returns true if a rebuild of the spell check index is required. |
boolean |
isRebuildNeeded(String subIndex)
Returns true if a rebuild of the spell index for the given sub
index is required. |
boolean |
rebuild()
Rebuilds the spell check index. |
boolean |
rebuild(String subIndex)
Rebuilds the spell check index for the given sub index. |
void |
refresh()
Refresh the internal readers and searches that work with the spell index. |
void |
refresh(String subIndex)
Refresh the internal readers and searches for the given sub index that work with the spell index. |
void |
start()
Starts the spell check manager. |
void |
stop()
Stops any scheduled tasks started by the start() method. |
CompassQuery |
suggest(CompassQuery query)
Suggests a query based on the given query. |
SearchEngineSpellCheckSuggestBuilder |
suggestBuilder(String word)
Creates a suggest builder allowing to suggest words for the given word. |
| Method Detail |
|---|
void start()
void stop()
start() method.
boolean isRebuildNeeded()
throws SearchEngineException
true if a rebuild of the spell check index is required.
SearchEngineException
boolean isRebuildNeeded(String subIndex)
throws SearchEngineException
true if a rebuild of the spell index for the given sub
index is required.
SearchEngineException
boolean concurrentRebuild()
throws SearchEngineException
rebuild() but executes the rebuild of each sub index using Compass
built in thread pool
SearchEngineException
boolean rebuild()
throws SearchEngineException
SearchEngineException
boolean rebuild(String subIndex)
throws SearchEngineException
SearchEngineException
void concurrentRefresh()
throws SearchEngineException
refresh() but executes the refresh of each sub index using Compass
built in thread pool.
SearchEngineException
void refresh()
throws SearchEngineException
SearchEngineException
void refresh(String subIndex)
throws SearchEngineException
SearchEngineException
void deleteIndex()
throws SearchEngineException
SearchEngineException
void deleteIndex(String subIndex)
throws SearchEngineException
SearchEngineExceptionSearchEngineSpellCheckSuggestBuilder suggestBuilder(String word)
CompassQuery suggest(CompassQuery query)
CompassQuery.isSuggested() flag will be set to
true.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||