public abstract class BaseSpellCheckIndexWriter extends Object implements SpellCheckIndexWriter
| Constructor and Description |
|---|
BaseSpellCheckIndexWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected URL |
getResource(String name) |
protected String |
getUID(long companyId,
String languageId,
String word,
String... parameters) |
void |
indexKeyword(SearchContext searchContext,
float weight,
String keywordType) |
protected abstract void |
indexKeyword(SearchContext searchContext,
long groupId,
String languageId,
String keyword,
float weight,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
protected abstract void |
indexKeywords(SearchContext searchContext,
long groupId,
String languageId,
InputStream inputStream,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
protected void |
indexKeywords(SearchContext searchContext,
long groupId,
String languageId,
String[] dictionaryFileNames,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
protected void |
indexKeywords(SearchContext searchContext,
String languageId,
String propsKey,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
void |
indexQuerySuggestionDictionaries(SearchContext searchContext) |
void |
indexQuerySuggestionDictionary(SearchContext searchContext) |
void |
indexSpellCheckerDictionaries(SearchContext searchContext) |
void |
indexSpellCheckerDictionary(SearchContext searchContext) |
void |
setQuerySuggestionMaxNGramLength(int querySuggestionMaxNGramLength) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearQuerySuggestionDictionaryIndexes, clearSpellCheckerDictionaryIndexespublic void indexKeyword(SearchContext searchContext, float weight, String keywordType) throws SearchException
indexKeyword in interface SpellCheckIndexWriterSearchExceptionpublic void indexQuerySuggestionDictionaries(SearchContext searchContext) throws SearchException
indexQuerySuggestionDictionaries in interface SpellCheckIndexWriterSearchExceptionpublic void indexQuerySuggestionDictionary(SearchContext searchContext) throws SearchException
indexQuerySuggestionDictionary in interface SpellCheckIndexWriterSearchExceptionpublic void indexSpellCheckerDictionaries(SearchContext searchContext) throws SearchException
indexSpellCheckerDictionaries in interface SpellCheckIndexWriterSearchExceptionpublic void indexSpellCheckerDictionary(SearchContext searchContext) throws SearchException
indexSpellCheckerDictionary in interface SpellCheckIndexWriterSearchExceptionpublic void setQuerySuggestionMaxNGramLength(int querySuggestionMaxNGramLength)
protected String getUID(long companyId, String languageId, String word, String... parameters)
protected abstract void indexKeyword(SearchContext searchContext, long groupId, String languageId, String keyword, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exceptionprotected abstract void indexKeywords(SearchContext searchContext, long groupId, String languageId, InputStream inputStream, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exceptionprotected void indexKeywords(SearchContext searchContext, long groupId, String languageId, String[] dictionaryFileNames, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exception