Class 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, boolean needsScores, float boost)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      org.apache.lucene.search.Query rewrite​(org.apache.lucene.index.IndexReader reader)  
      java.lang.String toString​(java.lang.String field)  
      • Methods inherited from class org.apache.lucene.search.Query

        classHash, sameClassAs, toString
      • Methods inherited from class java.lang.Object

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

      • MinDocQuery

        public MinDocQuery​(int minDoc)
        Sole constructor.
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.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 java.io.IOException
        Overrides:
        rewrite in class org.apache.lucene.search.Query
        Throws:
        java.io.IOException
      • createWeight

        public org.apache.lucene.search.Weight createWeight​(org.apache.lucene.search.IndexSearcher searcher,
                                                            boolean needsScores,
                                                            float boost)
                                                     throws java.io.IOException
        Overrides:
        createWeight in class org.apache.lucene.search.Query
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString​(java.lang.String field)
        Specified by:
        toString in class org.apache.lucene.search.Query