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, setQuerySuggestionMaxNGramLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearQuerySuggestionDictionaryIndexes, clearSpellCheckerDictionaryIndexes
public void setBatchSize(int batchSize)
public void setDocumentPrototype(Document documentPrototype)
protected abstract void addDocument(String documentType, SearchContext searchContext, Document document) throws SearchException
SearchException
protected abstract void addDocuments(String documentType, SearchContext searchContext, Collection<Document> documents) throws SearchException
SearchException
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) throws SearchException
SearchException
protected void indexKeyword(SearchContext searchContext, long groupId, String languageId, String keyword, float weight, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
indexKeyword
in class BaseSpellCheckIndexWriter
Exception
protected void indexKeywords(SearchContext searchContext, long groupId, String languageId, InputStream inputStream, String keywordFieldName, String typeFieldValue, int maxNGramLength) throws Exception
indexKeywords
in class BaseSpellCheckIndexWriter
Exception