java.lang.Object
org.apache.lucene.search.VectorScorer
org.apache.lucene.search.VectorScorer.FloatVectorScorer
- Enclosing class:
- VectorScorer
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.VectorScorer
similarity
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FloatVectorScorer
(FloatVectorValues values, float[] query, VectorSimilarityFunction similarity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
advanceExact
(int doc) Advance the instance to the given document ID and return true if there is a value for that document.float
score()
Compute the similarity score for the current document.Methods inherited from class org.apache.lucene.search.VectorScorer
create, create
-
Field Details
-
query
private final float[] query -
values
-
-
Constructor Details
-
FloatVectorScorer
protected FloatVectorScorer(FloatVectorValues values, float[] 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:
advanceExact
in classVectorScorer
- Throws:
IOException
-
score
Description copied from class:VectorScorer
Compute the similarity score for the current document.- Specified by:
score
in classVectorScorer
- Throws:
IOException
-