public final class XmlTextTokenStream extends TextOffsetTokenStream
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.analysis.TokenStream |
origWrapped |
charStream, contentIter, curNode, defVis, eltVis, empty, EMPTY, termAtt| Constructor and Description |
|---|
XmlTextTokenStream(String fieldName,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.analysis.TokenStream wrapped,
net.sf.saxon.s9api.XdmNode doc,
Offsets offsets)
Creates a TokenStream returning tokens drawn from the text content of the document.
|
resetTokenizergetDefaultVisibility, getElementVisibility, getWrappedTokenStream, incrementToken, incrementWrappedTokenStream, reset, reset, setDefaultVisibility, setElementVisibility, setWrappedTokenStreamaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreStatepublic XmlTextTokenStream(String fieldName, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.analysis.TokenStream wrapped, net.sf.saxon.s9api.XdmNode doc, Offsets offsets)
fieldName - nominally: the field to be analyzed; the analyzer receives this when the
token stream is reset at node boundariesanalyzer - specifies what text processing to apply to node textwrapped - a TokenStream generated by the analyzerdoc - tokens will be drawn from all of the text in this documentoffsets - if provided, character offsets are captured in this object
In theory this can be used for faster highlighting, but until that is proven,
this should always be null.Copyright © 2013. All Rights Reserved.