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
AQuery
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)
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in classorg.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 classorg.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 classorg.apache.lucene.search.Query
- Throws:
java.io.IOException
-
toString
public java.lang.String toString(java.lang.String field)
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
-