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, wait
clearQuerySuggestionDictionaryIndexes, clearSpellCheckerDictionaryIndexes
public void indexKeyword(SearchContext searchContext, float weight, String keywordType) throws SearchException
indexKeyword
in interface SpellCheckIndexWriter
SearchException
public void indexQuerySuggestionDictionaries(SearchContext searchContext) throws SearchException
indexQuerySuggestionDictionaries
in interface SpellCheckIndexWriter
SearchException
public void indexQuerySuggestionDictionary(SearchContext searchContext) throws SearchException
indexQuerySuggestionDictionary
in interface SpellCheckIndexWriter
SearchException
public void indexSpellCheckerDictionaries(SearchContext searchContext) throws SearchException
indexSpellCheckerDictionaries
in interface SpellCheckIndexWriter
SearchException
public void indexSpellCheckerDictionary(SearchContext searchContext) throws SearchException
indexSpellCheckerDictionary
in interface SpellCheckIndexWriter
SearchException
public void setQuerySuggestionMaxNGramLength(int querySuggestionMaxNGramLength)
protected URL getResource(String name)
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
Exception
protected abstract void indexKeywords(SearchContext searchContext, long groupId, String languageId, InputStream inputStream, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exception
protected void indexKeywords(SearchContext searchContext, long groupId, String languageId, String[] dictionaryFileNames, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exception
protected void indexKeywords(SearchContext searchContext, String languageId, String propsKey, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
Exception