com.liferay.portal.kernel.search
Class BaseSpellCheckIndexWriter
java.lang.Object
com.liferay.portal.kernel.search.BaseSpellCheckIndexWriter
- All Implemented Interfaces:
- SpellCheckIndexWriter
- Direct Known Subclasses:
- BaseGenericSpellCheckIndexWriter, LuceneSpellCheckIndexWriter
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)
|
protected abstract void |
indexKeywords(long companyId,
long groupId,
String languageId,
InputStream inputStream,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
|
protected void |
indexKeywords(long companyId,
long groupId,
String languageId,
String[] dictionaryFileNames,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
|
protected void |
indexKeywords(long companyId,
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERY_SUGGESTION_TYPE
protected static final String QUERY_SUGGESTION_TYPE
- See Also:
- Constant Field Values
SPELL_CHECKER_TYPE
protected static final String SPELL_CHECKER_TYPE
- See Also:
- Constant Field Values
BaseSpellCheckIndexWriter
public BaseSpellCheckIndexWriter()
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
getResource
protected URL getResource(String name)
getUID
protected String getUID(long companyId,
String languageId,
String word,
String... parameters)
indexKeywords
protected abstract void indexKeywords(long companyId,
long groupId,
String languageId,
InputStream inputStream,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception
indexKeywords
protected void indexKeywords(long companyId,
long groupId,
String languageId,
String[] dictionaryFileNames,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception
indexKeywords
protected void indexKeywords(long companyId,
String languageId,
String propsKey,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength)
throws Exception
- Throws:
Exception