Class TokenStreamToTermAutomatonQuery


  • public class TokenStreamToTermAutomatonQuery
    extends Object
    Consumes a TokenStream and creates an TermAutomatonQuery where the transition labels are tokens from the TermToBytesRefAttribute.

    This code is very new and likely has exciting bugs!

    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • TokenStreamToTermAutomatonQuery

        public TokenStreamToTermAutomatonQuery()
        Sole constructor.
    • Method Detail

      • setPreservePositionIncrements

        public void setPreservePositionIncrements​(boolean enablePositionIncrements)
        Whether to generate holes in the automaton for missing positions, true by default.