java.lang.Object
org.apache.lucene.search.VectorScorer
org.apache.lucene.search.VectorScorer.ByteVectorScorer
- Enclosing class:
- VectorScorer
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.VectorScorer
similarity -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedByteVectorScorer(ByteVectorValues values, byte[] query, VectorSimilarityFunction similarity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceExact(int doc) Advance the instance to the given document ID and return true if there is a value for that document.floatscore()Compute the similarity score for the current document.Methods inherited from class org.apache.lucene.search.VectorScorer
create, create
-
Field Details
-
query
private final byte[] query -
values
-
-
Constructor Details
-
ByteVectorScorer
protected ByteVectorScorer(ByteVectorValues values, byte[] query, VectorSimilarityFunction similarity)
-
-
Method Details
-
advanceExact
Advance the instance to the given document ID and return true if there is a value for that document.- Specified by:
advanceExactin classVectorScorer- Throws:
IOException
-
score
Description copied from class:VectorScorerCompute the similarity score for the current document.- Specified by:
scorein classVectorScorer- Throws:
IOException
-