Class MinDocQuery

java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.MinDocQuery

public final class MinDocQuery extends org.apache.lucene.search.Query
A Query that only matches documents that are greater than or equal to a configured doc ID.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MinDocQuery​(int minDoc)
    Sole constructor.
  • 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
    equals​(Object obj)
     
    int
     
    org.apache.lucene.search.Query
    rewrite​(org.apache.lucene.index.IndexReader reader)
     
    toString​(String field)
     

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

    classHash, sameClassAs, toString, visit

    Methods inherited from class java.lang.Object

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

    • MinDocQuery

      public MinDocQuery(int minDoc)
      Sole constructor.
  • Method Details

    • hashCode

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

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

      public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
      Overrides:
      rewrite in class org.apache.lucene.search.Query
      Throws:
      IOException
    • 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