Uses of Interface
org.apache.lucene.search.KnnCollector
-
Packages that use KnnCollector Package Description org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.backward_codecs.lucene91 Lucene 9.1 file format.org.apache.lucene.backward_codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.backward_codecs.lucene94 Lucene 9.4 file format.org.apache.lucene.backward_codecs.lucene95 Lucene 9.5 file format.org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.lucene99 Lucene 9.9 file format.org.apache.lucene.codecs.perfield Postings format that can delegate to different formats per-field.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.search Code to search indices.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer. -
-
Uses of KnnCollector in org.apache.lucene.backward_codecs.lucene90
Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene90HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene90HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.backward_codecs.lucene91
Methods in org.apache.lucene.backward_codecs.lucene91 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene91HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene91HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.backward_codecs.lucene92
Methods in org.apache.lucene.backward_codecs.lucene92 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene92HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene92HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.backward_codecs.lucene94
Methods in org.apache.lucene.backward_codecs.lucene94 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene94HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene94HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.backward_codecs.lucene95
Methods in org.apache.lucene.backward_codecs.lucene95 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene95HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene95HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type KnnCollector Modifier and Type Method Description abstract void
KnnVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
KnnVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function. -
Uses of KnnCollector in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type KnnCollector Modifier and Type Method Description void
Lucene99HnswVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
Lucene99HnswVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield with parameters of type KnnCollector Modifier and Type Method Description void
PerFieldKnnVectorsFormat.FieldsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
PerFieldKnnVectorsFormat.FieldsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.codecs.simpletext
Methods in org.apache.lucene.codecs.simpletext with parameters of type KnnCollector Modifier and Type Method Description void
SimpleTextKnnVectorsReader. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
SimpleTextKnnVectorsReader. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type KnnCollector Modifier and Type Method Description void
SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper. search(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper. search(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
void
CodecReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
CodecReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
void
DocValuesLeafReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
DocValuesLeafReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
void
ExitableDirectoryReader.ExitableFilterAtomicReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
ExitableDirectoryReader.ExitableFilterAtomicReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
void
FilterLeafReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
FilterLeafReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
abstract void
LeafReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
LeafReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.void
ParallelLeafReader. searchNearestVectors(java.lang.String fieldName, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
ParallelLeafReader. searchNearestVectors(java.lang.String fieldName, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory with parameters of type KnnCollector Modifier and Type Method Description void
MemoryIndex.MemoryIndexReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
MemoryIndex.MemoryIndexReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.search
Classes in org.apache.lucene.search that implement KnnCollector Modifier and Type Class Description class
AbstractKnnCollector
AbstractKnnCollector is the default implementation for a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsclass
TopKnnCollector
TopKnnCollector is a specific KnnCollector. -
Uses of KnnCollector in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type KnnCollector Modifier and Type Method Description void
TermVectorLeafReader. searchNearestVectors(java.lang.String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs)
void
TermVectorLeafReader. searchNearestVectors(java.lang.String field, float[] target, KnnCollector knnCollector, Bits acceptDocs)
-
Uses of KnnCollector in org.apache.lucene.search.join
Classes in org.apache.lucene.search.join that implement KnnCollector Modifier and Type Class Description (package private) class
DiversifyingNearestChildrenKnnCollector
This collects the nearest children vectors. -
Uses of KnnCollector in org.apache.lucene.util.hnsw
Classes in org.apache.lucene.util.hnsw that implement KnnCollector Modifier and Type Class Description static class
HnswGraphBuilder.GraphBuilderKnnCollector
A restricted, specialized knnCollector that can be used when building a graph.class
OrdinalTranslatedKnnCollector
Wraps a provided KnnCollector object, translating the provided vectorId ordinal to a documentIdFields in org.apache.lucene.util.hnsw declared as KnnCollector Modifier and Type Field Description private KnnCollector
OrdinalTranslatedKnnCollector. in
Methods in org.apache.lucene.util.hnsw that return KnnCollector Modifier and Type Method Description static KnnCollector
HnswGraphSearcher. search(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit)
SearchOnHeapHnswGraph
, this method is thread safe.Methods in org.apache.lucene.util.hnsw with parameters of type KnnCollector Modifier and Type Method Description static void
HnswGraphSearcher. search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds)
Searches HNSW graph for the nearest neighbors of a query vector.private static void
HnswGraphSearcher. search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, HnswGraphSearcher graphSearcher, Bits acceptOrds)
(package private) void
HnswGraphSearcher. searchLevel(KnnCollector results, RandomVectorScorer scorer, int level, int[] eps, HnswGraph graph, Bits acceptOrds)
Add the closest neighbors found to a priority queue (heap).Constructors in org.apache.lucene.util.hnsw with parameters of type KnnCollector Constructor Description OrdinalTranslatedKnnCollector(KnnCollector in, IntToIntFunction vectorOrdinalToDocId)
-