Module org.elasticsearch.server
Package org.elasticsearch.search.vectors
Class ESDiversifyingChildrenFloatKnnVectorQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.KnnFloatVectorQuery
org.apache.lucene.search.join.DiversifyingChildrenFloatKnnVectorQuery
org.elasticsearch.search.vectors.ESDiversifyingChildrenFloatKnnVectorQuery
- All Implemented Interfaces:
QueryProfilerProvider
public class ESDiversifyingChildrenFloatKnnVectorQuery
extends org.apache.lucene.search.join.DiversifyingChildrenFloatKnnVectorQuery
implements QueryProfilerProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final org.apache.lucene.search.Queryprotected final org.apache.lucene.search.knn.KnnSearchStrategyFields inherited from class org.apache.lucene.search.KnnFloatVectorQuery
target -
Constructor Summary
ConstructorsConstructorDescriptionESDiversifyingChildrenFloatKnnVectorQuery(String field, float[] query, org.apache.lucene.search.Query childFilter, int k, int numCands, org.apache.lucene.search.join.BitSetProducer parentsFilter, org.apache.lucene.search.knn.KnnSearchStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptiongetField()org.apache.lucene.search.QueryintgetK()org.apache.lucene.search.knn.KnnSearchStrategyprotected org.apache.lucene.search.TopDocsmergeLeafResults(org.apache.lucene.search.TopDocs[] perLeafResults) voidprofile(QueryProfiler queryProfiler) Store the profiling information in theQueryProfilerorg.apache.lucene.search.Queryrewrite(org.apache.lucene.search.IndexSearcher arg0) voidvisit(org.apache.lucene.search.QueryVisitor arg0) Methods inherited from class org.apache.lucene.search.join.DiversifyingChildrenFloatKnnVectorQuery
approximateSearch, equals, exactSearch, getKnnCollectorManager, hashCode, toStringMethods inherited from class org.apache.lucene.search.KnnFloatVectorQuery
getTargetCopyMethods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toString
-
Field Details
-
field
-
filter
protected final org.apache.lucene.search.Query filter -
searchStrategy
protected final org.apache.lucene.search.knn.KnnSearchStrategy searchStrategy
-
-
Constructor Details
-
ESDiversifyingChildrenFloatKnnVectorQuery
public ESDiversifyingChildrenFloatKnnVectorQuery(String field, float[] query, org.apache.lucene.search.Query childFilter, int k, int numCands, org.apache.lucene.search.join.BitSetProducer parentsFilter, org.apache.lucene.search.knn.KnnSearchStrategy strategy)
-
-
Method Details
-
mergeLeafResults
protected org.apache.lucene.search.TopDocs mergeLeafResults(org.apache.lucene.search.TopDocs[] perLeafResults) -
profile
Description copied from interface:QueryProfilerProviderStore the profiling information in theQueryProfiler- Specified by:
profilein interfaceQueryProfilerProvider- Parameters:
queryProfiler- an instance ofKnnFloatVectorField.
-
getStrategy
public org.apache.lucene.search.knn.KnnSearchStrategy getStrategy() -
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.IndexSearcher arg0) throws IOException - Overrides:
rewritein classorg.apache.lucene.search.Query- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor arg0) - Specified by:
visitin classorg.apache.lucene.search.Query
-
getField
-
getK
public int getK() -
getFilter
public org.apache.lucene.search.Query getFilter()
-