Class BinaryDocValuesContainsTermQuery

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

public final class BinaryDocValuesContainsTermQuery extends org.apache.lucene.search.Query
A query that matches documents whose binary doc values contain a specific term. Only works with binary doc values encoded using MultiValuedBinaryDocValuesField.SeparateCount.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    contains(byte[] value, int offset, int length, org.apache.lucene.util.BytesRef term)
     
    static boolean
    contains(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef term)
     
    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
  • 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
    • visit

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

      public String toString(String field)
      Specified by:
      toString 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
    • contains

      public static boolean contains(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef term)
    • contains

      public static boolean contains(byte[] value, int offset, int length, org.apache.lucene.util.BytesRef term)