Liferay 6.2.0-ce-rc3

com.liferay.portal.kernel.search
Class BaseSpellCheckIndexWriter

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseSpellCheckIndexWriter
All Implemented Interfaces:
SpellCheckIndexWriter
Direct Known Subclasses:
BaseGenericSpellCheckIndexWriter

public abstract class BaseSpellCheckIndexWriter
extends Object
implements SpellCheckIndexWriter


Constructor Summary
BaseSpellCheckIndexWriter()
           
 
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
 
Methods inherited from interface com.liferay.portal.kernel.search.SpellCheckIndexWriter
clearQuerySuggestionDictionaryIndexes, clearSpellCheckerDictionaryIndexes
 

Constructor Detail

BaseSpellCheckIndexWriter

public BaseSpellCheckIndexWriter()
Method Detail

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

Liferay 6.2.0-ce-rc3