analyzedText
Returns intervals that correspond to tokens from a TokenStream returned for text by applying the provided Analyzer as if text was the content of the given field. The intervals can be ordered or unordered and can have optional gaps inside.
Return
Returns an IntervalsSource that matches tokens acquired from analysis of text. Possibly an empty interval source, never null.
Parameters
The text to analyze.
The Analyzer to use to acquire a TokenStream which is then converted into intervals.
The field text should be parsed as.
Maximum number of allowed gaps between sub-intervals resulting from tokens.
Whether sub-intervals should enforce token ordering or not.
Throws
If an I/O exception occurs.
Returns intervals that correspond to tokens from the provided TokenStream. This is a low-level counterpart to analyzedText. The intervals can be ordered or unordered and can have optional gaps inside.
Return
Returns an IntervalsSource that matches tokens acquired from analysis of text. Possibly an empty interval source, never null.
Parameters
The token stream to produce intervals for. The token stream may be fully or partially consumed after returning from this method.
Maximum number of allowed gaps between sub-intervals resulting from tokens.
Whether sub-intervals should enforce token ordering or not.
Throws
If an I/O exception occurs.