Liferay 6.2-ce-ga5

com.liferay.portal.kernel.search
Class BaseGenericSpellCheckIndexWriter

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

public abstract class BaseGenericSpellCheckIndexWriter
extends BaseSpellCheckIndexWriter


Constructor Summary
BaseGenericSpellCheckIndexWriter()
           
 
Method Summary
protected  void addNGramFields(Document document, Map<String,String> nGrams)
           
protected  Document createDocument(long companyId, long groupId, String languageId, String keywords, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength)
           
protected  void indexKeyword(long companyId, long groupId, String languageId, String keyword, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength)
           
protected  void indexKeywords(long companyId, long groupId, String languageId, InputStream inputStream, String keywordFieldName, String typeFieldValue, int maxNGramLength)
           
 void setBatchSize(int batchSize)
           
 void setDocumentPrototype(Document documentPrototype)
           
 void setIndexWriter(IndexWriter indexWriter)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseSpellCheckIndexWriter
getResource, getUID, indexKeyword, indexKeywords, indexKeywords, indexQuerySuggestionDictionaries, indexQuerySuggestionDictionary, indexSpellCheckerDictionaries, indexSpellCheckerDictionary, setQuerySuggestionMaxNGramLength
 
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

BaseGenericSpellCheckIndexWriter

public BaseGenericSpellCheckIndexWriter()
Method Detail

setBatchSize

public void setBatchSize(int batchSize)

setDocumentPrototype

public void setDocumentPrototype(Document documentPrototype)

setIndexWriter

public void setIndexWriter(IndexWriter indexWriter)

addNGramFields

protected void addNGramFields(Document document,
                              Map<String,String> nGrams)

createDocument

protected Document createDocument(long companyId,
                                  long groupId,
                                  String languageId,
                                  String keywords,
                                  float weight,
                                  String keywordFieldName,
                                  String typeFieldValue,
                                  int maxNGramLength)
                           throws SearchException
Throws:
SearchException

indexKeyword

protected void indexKeyword(long companyId,
                            long groupId,
                            String languageId,
                            String keyword,
                            float weight,
                            String keywordFieldName,
                            String typeFieldValue,
                            int maxNGramLength)
                     throws Exception
Specified by:
indexKeyword in class BaseSpellCheckIndexWriter
Throws:
Exception

indexKeywords

protected void indexKeywords(long companyId,
                             long groupId,
                             String languageId,
                             InputStream inputStream,
                             String keywordFieldName,
                             String typeFieldValue,
                             int maxNGramLength)
                      throws Exception
Specified by:
indexKeywords in class BaseSpellCheckIndexWriter
Throws:
Exception

Liferay 6.2-ce-ga5