public abstract static class ContextMapping.ContextConfig
extends java.lang.Object
ContextMapping combined with the information provided by a document
form a ContextMapping.ContextConfig which is used to build the underlying FST. This class hold
a simple method wrapping a TokenStream by provided document informations.| Constructor and Description |
|---|
ContextConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.lucene.analysis.TokenStream |
wrapTokenStream(ParseContext.Document doc,
org.apache.lucene.analysis.TokenStream stream)
Wrap a
TokenStream for building suggestions to use context informations
provided by a document or a ContextMapping |
protected abstract org.apache.lucene.analysis.TokenStream wrapTokenStream(ParseContext.Document doc, org.apache.lucene.analysis.TokenStream stream)
TokenStream for building suggestions to use context informations
provided by a document or a ContextMappingdoc - document related to the streamstream - original stream used to build the underlying FSTTokenStream providing additional context information