Package org.apache.lucene.search.knn
Class KnnSearchStrategy.Patience
java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.apache.lucene.search.knn.KnnSearchStrategy.Hnsw
org.apache.lucene.search.knn.KnnSearchStrategy.Patience
- Enclosing class:
KnnSearchStrategy
A strategy for kNN search on HNSW that early exits when nearest neighbor collection rate
saturates.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
KnnSearchStrategy.Hnsw, KnnSearchStrategy.Patience, KnnSearchStrategy.Seeded -
Field Summary
Fields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy.Hnsw
DEFAULTFields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
DEFAULT_FILTERED_SEARCH_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionPatience(HnswQueueSaturationCollector collector, int filteredSearchThreshold) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride and implement search strategy instance equivalence properly in a subclass.inthashCode()Override and implement search strategy hash code properly in a subclass.voidSignal processing of the next block of vectors.Methods inherited from class org.apache.lucene.search.knn.KnnSearchStrategy.Hnsw
filteredSearchThreshold, useFilteredSearch
-
Constructor Details
-
Patience
-
-
Method Details
-
equals
Description copied from class:KnnSearchStrategyOverride and implement search strategy instance equivalence properly in a subclass.- Overrides:
equalsin classKnnSearchStrategy.Hnsw
-
hashCode
public int hashCode()Description copied from class:KnnSearchStrategyOverride and implement search strategy hash code properly in a subclass.- Overrides:
hashCodein classKnnSearchStrategy.Hnsw- See Also:
-
nextVectorsBlock
public void nextVectorsBlock()Description copied from class:KnnSearchStrategySignal processing of the next block of vectors.- Overrides:
nextVectorsBlockin classKnnSearchStrategy.Hnsw
-