Class SlowCustomBinaryDocValuesTermQuery

java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.lucene.queries.SlowCustomBinaryDocValuesTermQuery

public final class SlowCustomBinaryDocValuesTermQuery extends org.apache.lucene.search.Query
A query for matching an exact BytesRef value for a specific field. The equavalent of SortedDocValuesField.newSlowExactQuery(String, BytesRef), but then for binary doc values.

This implementation is slow, because it potentially scans binary doc values for each document.

  • Constructor Summary

    Constructors
    Constructor
    Description
    SlowCustomBinaryDocValuesTermQuery(String fieldName, org.apache.lucene.util.BytesRef term)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.Weight
    createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
     
    boolean
     
    int
     
     
    void
    visit(org.apache.lucene.search.QueryVisitor visitor)
     

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

    classHash, rewrite, sameClassAs, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SlowCustomBinaryDocValuesTermQuery

      public SlowCustomBinaryDocValuesTermQuery(String fieldName, org.apache.lucene.util.BytesRef term)
  • Method Details

    • createWeight

      public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException
      Overrides:
      createWeight in class org.apache.lucene.search.Query
      Throws:
      IOException
    • toString

      public String toString(String field)
      Specified by:
      toString in class org.apache.lucene.search.Query
    • visit

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Specified by:
      visit in class org.apache.lucene.search.Query
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query