Class AutomatonQueryWithDescription

java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.MultiTermQuery
org.apache.lucene.search.AutomatonQuery
org.elasticsearch.index.query.AutomatonQueryWithDescription
All Implemented Interfaces:
org.apache.lucene.util.Accountable

public class AutomatonQueryWithDescription extends org.apache.lucene.search.AutomatonQuery
A specialized AutomatonQuery that includes a description of the query. This can be useful for debugging or logging purposes, providing more context about the query being executed.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.MultiTermQuery

    org.apache.lucene.search.MultiTermQuery.RewriteMethod, org.apache.lucene.search.MultiTermQuery.TopTermsBlendedFreqScoringRewrite, org.apache.lucene.search.MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite, org.apache.lucene.search.MultiTermQuery.TopTermsScoringBooleanQueryRewrite
  • Field Summary

    Fields inherited from class org.apache.lucene.search.AutomatonQuery

    automaton, automatonIsBinary, compiled, term

    Fields inherited from class org.apache.lucene.search.MultiTermQuery

    CONSTANT_SCORE_BLENDED_REWRITE, CONSTANT_SCORE_BOOLEAN_REWRITE, CONSTANT_SCORE_REWRITE, DOC_VALUES_REWRITE, field, rewriteMethod, SCORING_BOOLEAN_REWRITE

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AutomatonQueryWithDescription(org.apache.lucene.index.Term term, org.apache.lucene.util.automaton.Automaton automaton, String description)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.apache.lucene.search.AutomatonQuery

    equals, getAutomaton, getCompiled, getTermsEnum, hashCode, isAutomatonBinary, ramBytesUsed, visit

    Methods inherited from class org.apache.lucene.search.MultiTermQuery

    getField, getRewriteMethod, getTermsCount, getTermsEnum, rewrite

    Methods inherited from class org.apache.lucene.search.Query

    classHash, createWeight, sameClassAs, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources
  • Constructor Details

    • AutomatonQueryWithDescription

      public AutomatonQueryWithDescription(org.apache.lucene.index.Term term, org.apache.lucene.util.automaton.Automaton automaton, String description)
  • Method Details

    • toString

      public String toString(String field)
      Overrides:
      toString in class org.apache.lucene.search.AutomatonQuery