Package org.apache.lucene.queries
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
int
hashCode()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString, visit
-
Constructor Details
-
MinDocQuery
public MinDocQuery(int minDoc)Sole constructor.
-
-
Method Details
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException- Overrides:
rewrite
in classorg.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 classorg.apache.lucene.search.Query
- Throws:
IOException
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-