com.liferay.portal.kernel.search
Class BaseGenericSpellCheckIndexWriter
java.lang.Object
com.liferay.portal.kernel.search.BaseSpellCheckIndexWriter
com.liferay.portal.kernel.search.BaseGenericSpellCheckIndexWriter
- All Implemented Interfaces:
- SpellCheckIndexWriter
public abstract class BaseGenericSpellCheckIndexWriter
- extends BaseSpellCheckIndexWriter
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseGenericSpellCheckIndexWriter
public BaseGenericSpellCheckIndexWriter()
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