public class CompositeSpellChecker extends Object implements org.apache.jackrabbit.core.query.lucene.SpellChecker
LuceneSpellChecker implements a spell checker based on the terms
present in a lucene index.| Modifier and Type | Class and Description |
|---|---|
static class |
CompositeSpellChecker.FiveMinutesRefreshInterval |
static class |
CompositeSpellChecker.FiveSecondsRefreshInterval |
static class |
CompositeSpellChecker.OneDayRefreshInterval |
static class |
CompositeSpellChecker.OneHourRefreshInterval |
static class |
CompositeSpellChecker.OneMinuteRefreshInterval |
static class |
CompositeSpellChecker.SixHoursRefreshInterval |
static class |
CompositeSpellChecker.ThirtyMinutesRefreshInterval |
static class |
CompositeSpellChecker.TwelveHoursRefreshInterval |
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_TERMS_PARAM |
static String |
SEPARATOR_IN_SUGGESTION |
static String |
SITES_PARAM |
| Modifier | Constructor and Description |
|---|---|
|
CompositeSpellChecker()
Spell checker with a default refresh interval of one hour.
|
protected |
CompositeSpellChecker(long refreshInterval) |
| Modifier and Type | Method and Description |
|---|---|
String |
check(org.apache.jackrabbit.spi.commons.query.QueryRootNode aqt) |
void |
close() |
void |
init(org.apache.jackrabbit.core.query.QueryHandler handler)
Initializes this spell checker.
|
void |
updateIndex()
Triggers update of the spell checker dictionary index.
|
void |
updateIndex(boolean inBackground)
Triggers update of the spell checker dictionary index.
|
static void |
updateSpellCheckerIndex()
Triggers update of the spell checker dictionary index, which is executed in a separate thread.
|
static void |
updateSpellCheckerIndex(boolean inBackground)
Triggers update of the spell checker dictionary index.
|
public static final String SEPARATOR_IN_SUGGESTION
public static final String MAX_TERMS_PARAM
public static final String SITES_PARAM
public CompositeSpellChecker()
protected CompositeSpellChecker(long refreshInterval)
public static void updateSpellCheckerIndex()
public static void updateSpellCheckerIndex(boolean inBackground)
inBackground - specifies if the update should be done in a separate thread; if false the update will be done in the
main thread, blocking the return until it is finishedpublic void init(org.apache.jackrabbit.core.query.QueryHandler handler)
throws IOException
init in interface org.apache.jackrabbit.core.query.lucene.SpellCheckerhandler - the query handler that created this spell checker.IOException - if handler is not of type SearchIndex.public String check(org.apache.jackrabbit.spi.commons.query.QueryRootNode aqt) throws IOException
check in interface org.apache.jackrabbit.core.query.lucene.SpellCheckerIOExceptionpublic void close()
close in interface org.apache.jackrabbit.core.query.lucene.SpellCheckerpublic void updateIndex()
public void updateIndex(boolean inBackground)
inBackground - specifies if the update should be done in a separate threadCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.