public abstract class BaseGenericSpellCheckIndexWriter extends BaseSpellCheckIndexWriter
| Constructor and Description |
|---|
BaseGenericSpellCheckIndexWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addDocument(String documentType,
SearchContext searchContext,
Document document) |
protected abstract void |
addDocuments(String documentType,
SearchContext searchContext,
Collection<Document> documents) |
protected void |
addNGramFields(Document document,
Map<String,String> nGrams) |
protected Document |
createDocument() |
protected Document |
createDocument(long companyId,
long groupId,
String languageId,
String keywords,
float weight,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
protected void |
indexKeyword(SearchContext searchContext,
long groupId,
String languageId,
String keyword,
float weight,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
protected void |
indexKeywords(SearchContext searchContext,
long groupId,
String languageId,
InputStream inputStream,
String keywordFieldName,
String typeFieldValue,
int maxNGramLength) |
void |
setBatchSize(int batchSize) |
void |
setDocumentPrototype(Document documentPrototype) |
getResource, getUID, indexKeyword, indexKeywords, indexKeywords, indexQuerySuggestionDictionaries, indexQuerySuggestionDictionary, indexSpellCheckerDictionaries, indexSpellCheckerDictionary, setQuerySuggestionMaxNGramLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearQuerySuggestionDictionaryIndexes, clearSpellCheckerDictionaryIndexespublic void setBatchSize(int batchSize)
public void setDocumentPrototype(Document documentPrototype)
protected abstract void addDocument(String documentType, SearchContext searchContext, Document document) throws SearchException
SearchExceptionprotected abstract void addDocuments(String documentType, SearchContext searchContext, Collection<Document> documents) throws SearchException
SearchExceptionprotected Document createDocument()
protected Document createDocument(long companyId, long groupId, String languageId, String keywords, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws SearchException
SearchExceptionprotected void indexKeyword(SearchContext searchContext, long groupId, String languageId, String keyword, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
indexKeyword in class BaseSpellCheckIndexWriterExceptionprotected void indexKeywords(SearchContext searchContext, long groupId, String languageId, InputStream inputStream, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
indexKeywords in class BaseSpellCheckIndexWriterException