java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.elasticsearch.search.vectors.IVFKnnSearchStrategy
public class IVFKnnSearchStrategy
extends org.apache.lucene.search.knn.KnnSearchStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
org.apache.lucene.search.knn.KnnSearchStrategy.Hnsw, org.apache.lucene.search.knn.KnnSearchStrategy.Patience, org.apache.lucene.search.knn.KnnSearchStrategy.Seeded -
Field Summary
Fields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
DEFAULT_FILTERED_SEARCH_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatinthashCode()voidThis method is called when the next block of vectors is processed.
-
Method Details
-
getVisitRatio
public float getVisitRatio() -
equals
- Specified by:
equalsin classorg.apache.lucene.search.knn.KnnSearchStrategy
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.knn.KnnSearchStrategy
-
nextVectorsBlock
public void nextVectorsBlock()This method is called when the next block of vectors is processed. It accumulates the minimum competitive document score from the collector and updates the accumulator with the most competitive score. If the current score in the accumulator is greater than the minimum competitive document score in the collector, it updates the collector's minimum competitive document score.- Specified by:
nextVectorsBlockin classorg.apache.lucene.search.knn.KnnSearchStrategy
-