Liferay 6.2-ce-ga5

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 indexKeyword(long companyId, long groupId, String languageId, String keyword, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength)
           
 void indexKeyword(SearchContext searchContext, float weight, String keywordType)
           
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)
           
 void setQuerySuggestionMaxNGramLength(int querySuggestionMaxNGramLength)
           
 
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

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(long companyId,
                                     long groupId,
                                     String languageId,
                                     String keyword,
                                     float weight,
                                     String keywordFieldName,
                                     String typeFieldValue,
                                     int maxNGramLength)
                              throws Exception
Throws:
Exception

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-ce-ga5