public final class ElementTokenStream extends TextOffsetTokenStream
Each element name may be one of: transparent, opaque, hidden, or container. The default may be set to either opaque or transparent. Unless hidden, text is tagged with its parent element. If its parent is transparent, it is also tagged with ancestor elements, stopping at the first opaque or container element. In addition, visible (non-hidden) text is tagged with all ancestor container elements.
ElementVisibility.OPAQUEElementVisibility.TRANSPARENTElementVisibility.HIDDENElementVisibility.CONTAINERcharStream, contentIter, curNode, defVis, eltVis, EMPTY, termAtt| Constructor and Description |
|---|
ElementTokenStream(String fieldName,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.analysis.TokenStream wrapped,
net.sf.saxon.s9api.XdmNode doc,
Offsets offsets) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
updateNodeAtts() |
resetTokenizerclose, getDefaultVisibility, getElementVisibility, getWrappedTokenStream, incrementToken, incrementWrappedTokenStream, reset, reset, setDefaultVisibility, setElementVisibility, setWrappedTokenStreamaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringCopyright © 2013. All Rights Reserved.