Class TokenStreamOffsetStrategy


public class TokenStreamOffsetStrategy extends AnalysisOffsetStrategy
Analyzes the text, producing a single OffsetsEnum wrapping the TokenStream filtered to terms in the query, including wildcards. It can't handle position-sensitive queries (phrases). Passage accuracy suffers because the freq() is unknown -- it's always Integer.MAX_VALUE instead.