Package org.apache.lucene.search.knn
Class KnnSearchStrategy.Seeded
java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.apache.lucene.search.knn.KnnSearchStrategy.Seeded
- Enclosing class:
KnnSearchStrategy
A strategy for kNN search that uses a set of entry points to start the search
- 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
DEFAULT_FILTERED_SEARCH_THRESHOLD
-
Constructor Summary
ConstructorsConstructorDescriptionSeeded
(DocIdSetIterator entryPoints, int numberOfEntryPoints, KnnSearchStrategy originalStrategy) -
Method Summary
Modifier and TypeMethodDescriptionIterator of valid entry points for the kNN searchboolean
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.int
Number of valid entry points for the kNN searchOriginal strategy to use after seeding
-
Constructor Details
-
Seeded
public Seeded(DocIdSetIterator entryPoints, int numberOfEntryPoints, KnnSearchStrategy originalStrategy)
-
-
Method Details
-
entryPoints
Iterator of valid entry points for the kNN search- Returns:
- DocIdSetIterator of entry points
-
numberOfEntryPoints
public int numberOfEntryPoints()Number of valid entry points for the kNN search- Returns:
- number of entry points
-
originalStrategy
Original strategy to use after seeding- Returns:
- original strategy
-
equals
Description copied from class:KnnSearchStrategy
Override and implement search strategy instance equivalence properly in a subclass.- Specified by:
equals
in classKnnSearchStrategy
-
hashCode
public int hashCode()Description copied from class:KnnSearchStrategy
Override and implement search strategy hash code properly in a subclass.- Specified by:
hashCode
in classKnnSearchStrategy
- See Also:
-
nextVectorsBlock
public void nextVectorsBlock()Description copied from class:KnnSearchStrategy
Signal processing of the next block of vectors.- Specified by:
nextVectorsBlock
in classKnnSearchStrategy
-