com.liferay.portal.kernel.search.suggest
Class BaseSpellCheckIndexWriter
java.lang.Object
com.liferay.portal.kernel.search.suggest.BaseSpellCheckIndexWriter
- All Implemented Interfaces:
- SpellCheckIndexWriter
- Direct Known Subclasses:
- BaseGenericSpellCheckIndexWriter
public abstract class BaseSpellCheckIndexWriter
- extends Object
- implements SpellCheckIndexWriter
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSpellCheckIndexWriter
public BaseSpellCheckIndexWriter()
indexKeyword
public void indexKeyword(SearchContext searchContext,
float weight,
String keywordType)
throws SearchException
- Specified by:
indexKeyword in interface SpellCheckIndexWriter
- Throws:
SearchException
indexQuerySuggestionDictionaries
public void indexQuerySuggestionDictionaries(SearchContext searchContext)
throws SearchException
- Specified by:
indexQuerySuggestionDictionaries in interface SpellCheckIndexWriter
- Throws:
SearchException
indexQuerySuggestionDictionary
public void indexQuerySuggestionDictionary(SearchContext searchContext)
throws SearchException
- Specified by:
indexQuerySuggestionDictionary in interface SpellCheckIndexWriter
- Throws:
SearchException
indexSpellCheckerDictionaries
public void indexSpellCheckerDictionaries(SearchContext searchContext)
throws SearchException
- Specified by:
indexSpellCheckerDictionaries in interface SpellCheckIndexWriter
- Throws:
SearchException
indexSpellCheckerDictionary
public void indexSpellCheckerDictionary(SearchContext searchContext)
throws SearchException
- Specified by:
indexSpellCheckerDictionary in interface SpellCheckIndexWriter
- Throws:
SearchException
setQuerySuggestionMaxNGramLength
public void setQuerySuggestionMaxNGramLength(int querySuggestionMaxNGramLength)
getResource
protected URL getResource(String name)
getUID
protected String getUID(long companyId,
String languageId,
String word,
String... parameters)
indexKeyword
protected abstract void indexKeyword(SearchContext searchContext,
long groupId,
String languageId,
String keyword,
float weight,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception
indexKeywords
protected abstract void indexKeywords(SearchContext searchContext,
long groupId,
String languageId,
InputStream inputStream,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception
indexKeywords
protected void indexKeywords(SearchContext searchContext,
long groupId,
String languageId,
String[] dictionaryFileNames,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception
indexKeywords
protected void indexKeywords(SearchContext searchContext,
String languageId,
String propsKey,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception