Package org.apache.lucene.search.knn
Class KnnSearchStrategy
java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
- Direct Known Subclasses:
KnnSearchStrategy.Hnsw
,KnnSearchStrategy.Seeded
KnnSearchStrategy is a strategy for kNN search, providing additional search strategy
configuration
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A strategy for kNN search that uses HNSWstatic class
A strategy for kNN search on HNSW that early exits when nearest neighbor collection rate saturates.static class
A strategy for kNN search that uses a set of entry points to start the search -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Override and implement search strategy instance equivalence properly in a subclass.abstract int
hashCode()
Override and implement search strategy hash code properly in a subclass.abstract void
Signal processing of the next block of vectors.
-
Field Details
-
DEFAULT_FILTERED_SEARCH_THRESHOLD
public static final int DEFAULT_FILTERED_SEARCH_THRESHOLD- See Also:
-
-
Constructor Details
-
KnnSearchStrategy
public KnnSearchStrategy()
-
-
Method Details
-
equals
Override and implement search strategy instance equivalence properly in a subclass. -
hashCode
public abstract int hashCode()Override and implement search strategy hash code properly in a subclass. -
nextVectorsBlock
public abstract void nextVectorsBlock()Signal processing of the next block of vectors.
-