Class VectorSearchIndexFields

java.lang.Object
com.mongodb.client.model.VectorSearchIndexFields

public final class VectorSearchIndexFields extends Object
A factory for defining fields within a vector search index definition.

A convenient way to use this class is to statically import all of its methods, which allows usage like:


    SearchIndexDefinition.vectorSearch(
        vectorField("plot_embedding")
            .numDimensions(1536)
            .similarity("euclidean")
            .indexingMethod("flat"),
        filterField("genre")
    );
 
Since:
5.8
See Also: