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
DEFAULT
Fields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
DEFAULT_FILTERED_SEARCH_THRESHOLD
-
Constructor Summary
ConstructorsConstructorDescriptionPatience
(HnswQueueSaturationCollector collector, int filteredSearchThreshold) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override and implement search strategy instance equivalence properly in a subclass.int
hashCode()
Override and implement search strategy hash code properly in a subclass.void
Signal 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:KnnSearchStrategy
Override and implement search strategy instance equivalence properly in a subclass.- Overrides:
equals
in classKnnSearchStrategy.Hnsw
-
hashCode
public int hashCode()Description copied from class:KnnSearchStrategy
Override and implement search strategy hash code properly in a subclass.- Overrides:
hashCode
in classKnnSearchStrategy.Hnsw
- See Also:
-
nextVectorsBlock
public void nextVectorsBlock()Description copied from class:KnnSearchStrategy
Signal processing of the next block of vectors.- Overrides:
nextVectorsBlock
in classKnnSearchStrategy.Hnsw
-