TeeSinkTokenFilterand implementations of
TeeSinkTokenFilter.SinkFilterthat might be useful.
Class Summary Class Description DateRecognizerSinkFilterAttempts to parse the
CharTermAttribute.buffer()as a Date using a
TeeSinkTokenFilterThis TokenFilter provides the ability to set aside attribute states that have already been analyzed. TeeSinkTokenFilter.SinkFilterA filter that decides which
AttributeSourcestates to store in the sink.
TeeSinkTokenFilter.SinkTokenStreamTokenStream output from a tee with optional filtering. TokenRangeSinkFilterCounts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper TokenTypeSinkFilterAdds a token to the sink if it has a specific type.