Package org.apache.lucene.queries
Class SearchAfterSortedDocQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.SearchAfterSortedDocQuery
public class SearchAfterSortedDocQuery
extends org.apache.lucene.search.Query
A
Query
that only matches documents that are greater than the provided FieldDoc
.
This works only if the index is sorted according to the given search Sort
.-
Constructor Summary
ConstructorDescriptionSearchAfterSortedDocQuery(org.apache.lucene.search.Sort sort, org.apache.lucene.search.FieldDoc after)
-
Method Summary
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visit
-
Constructor Details
-
SearchAfterSortedDocQuery
public SearchAfterSortedDocQuery(org.apache.lucene.search.Sort sort, org.apache.lucene.search.FieldDoc after)
-
-
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 classorg.apache.lucene.search.Query
- Throws:
IOException
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-