public class TokenStreamToTermAutomatonQuery extends Object
TermAutomatonQuery
where the transition labels are tokens from the TermToBytesRefAttribute.
This code is very new and likely has exciting bugs!
| 构造器和说明 |
|---|
TokenStreamToTermAutomatonQuery()
Sole constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setPreservePositionIncrements(boolean enablePositionIncrements)
Whether to generate holes in the automaton for missing positions,
true by default. |
TermAutomatonQuery |
toQuery(String field,
TokenStream in)
Pulls the graph (including
PositionLengthAttribute) from the provided TokenStream, and creates the corresponding
automaton where arcs are bytes (or Unicode code points
if unicodeArcs = true) from each term. |
public void setPreservePositionIncrements(boolean enablePositionIncrements)
true by default.public TermAutomatonQuery toQuery(String field, TokenStream in) throws IOException
PositionLengthAttribute) from the provided TokenStream, and creates the corresponding
automaton where arcs are bytes (or Unicode code points
if unicodeArcs = true) from each term.IOExceptionCopyright © 2022. All rights reserved.