Package org.apache.lucene.search
Interface VectorScorer.Bulk
- Enclosing interface:
VectorScorer
public static interface VectorScorer.Bulk
Bulk scorer interface to score multiple vectors at once
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic VectorScorer.BulkfromRandomScorerDense(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs) static VectorScorer.BulkfromRandomScorerSparse(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs) floatnextDocsAndScores(int upTo, Bits liveDocs, DocAndFloatFeatureBuffer buffer) Score docs ids iterating to upTo documents, store the results in the provided buffer.
-
Method Details
-
nextDocsAndScores
float nextDocsAndScores(int upTo, Bits liveDocs, DocAndFloatFeatureBuffer buffer) throws IOException Score docs ids iterating to upTo documents, store the results in the provided buffer. Behaves similarly toScorer.nextDocsAndScores(int, Bits, DocAndFloatFeatureBuffer)- Parameters:
upTo- the maximum doc ID to scoreliveDocs- the live docs, or null if all docs are livebuffer- the buffer to store the results- Returns:
- the max score of the scored documents
- Throws:
IOException- if an exception occurs during scoring
-
fromRandomScorerDense
static VectorScorer.Bulk fromRandomScorerDense(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs) -
fromRandomScorerSparse
static VectorScorer.Bulk fromRandomScorerSparse(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs)
-