Class ApproximateIndexOrDocValuesQuery
java.lang.Object
org.apache.lucene.search.Query
org.opensearch.search.approximate.ApproximateScoreQuery
org.opensearch.search.approximate.ApproximateIndexOrDocValuesQuery
A wrapper around
IndexOrDocValuesQuery
that can be used to run approximate queries.
It delegates to either ApproximateQuery
or IndexOrDocValuesQuery
based on whether the query can be approximated or not.- See Also:
-
Field Summary
Fields inherited from class org.opensearch.search.approximate.ApproximateScoreQuery
resolvedQuery
-
Constructor Summary
ConstructorDescriptionApproximateIndexOrDocValuesQuery
(org.apache.lucene.search.Query indexQuery, ApproximateQuery approximateIndexQuery, org.apache.lucene.search.Query dvQuery) -
Method Summary
Methods inherited from class org.opensearch.search.approximate.ApproximateScoreQuery
getApproximationQuery, getOriginalQuery, rewrite, setContext
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, sameClassAs, toString
-
Constructor Details
-
ApproximateIndexOrDocValuesQuery
public ApproximateIndexOrDocValuesQuery(org.apache.lucene.search.Query indexQuery, ApproximateQuery approximateIndexQuery, org.apache.lucene.search.Query dvQuery)
-
-
Method Details
-
toString
- Overrides:
toString
in classApproximateScoreQuery
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visit
in classApproximateScoreQuery
-
equals
- Overrides:
equals
in classApproximateScoreQuery
-
hashCode
public int hashCode()- Overrides:
hashCode
in classApproximateScoreQuery
-