Module org.elasticsearch.server
Interface VectorsFormatProvider
public interface VectorsFormatProvider
A service provider interface for obtaining Lucene
KnnVectorsFormat instances.
Plugins can implement this interface to provide custom vector formats-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.KnnVectorsFormatgetKnnVectorsFormat(IndexSettings indexSettings, DenseVectorFieldMapper.DenseVectorIndexOptions indexOptions, DenseVectorFieldMapper.VectorSimilarity similarity) Returns aKnnVectorsFormatinstance based on the provided index settings and vector index options.
-
Method Details
-
getKnnVectorsFormat
org.apache.lucene.codecs.KnnVectorsFormat getKnnVectorsFormat(IndexSettings indexSettings, DenseVectorFieldMapper.DenseVectorIndexOptions indexOptions, DenseVectorFieldMapper.VectorSimilarity similarity) Returns aKnnVectorsFormatinstance based on the provided index settings and vector index options. May returnnullif the provider does not support the format for the given index settings or vector index options.- Parameters:
indexSettings- The index settings.indexOptions- The dense vector index options.similarity- The vector similarity function.- Returns:
- A KnnVectorsFormat instance.
-