Interface ElasticsearchVectorFieldCodec<F>
- All Superinterfaces:
ElasticsearchFieldCodec<F>
- All Known Implementing Classes:
AbstractElasticsearchVectorFieldCodec,ElasticsearchByteVectorFieldCodec,ElasticsearchFloatVectorFieldCodec
-
Method Summary
Modifier and TypeMethodDescriptionintfloatscoreToSimilarity(float score) Convert the score vale to the similarity to be passed to the knn filter.Class<?>Methods inherited from interface org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchFieldCodec
canDecodeArrays, decode, decodeAggregationKey, encode, encodeForAggregation, encodeForMissing, fromJsonElementToString, fromJsonStringToElement, isCompatibleWith
-
Method Details
-
vectorElementsType
Class<?> vectorElementsType()- Returns:
- The type of vector elements expected to get either
float.classorbyte.class.
-
getConfiguredDimensions
int getConfiguredDimensions()- Returns:
- The number of dimensions (array length) of vectors to be indexed that this codec can process.
-
scoreToSimilarity
float scoreToSimilarity(float score) Convert the score vale to the similarity to be passed to the knn filter.
-