Table of Contents

Method WithIncludedStoredFields

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

WithIncludedStoredFields(params FieldDefinition<TDocument>[])

Creates a new CreateAutoEmbeddingVectorSearchIndexModel<TDocument> with the given fields configured to be stored in the index. Note that storing full documents might significantly impact performance during indexing and querying. Explicitly storing vector fields is not recommended.

public CreateAutoEmbeddingVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params FieldDefinition<TDocument>[] includedStoredFields)

Parameters

includedStoredFields FieldDefinition<TDocument>[]

The fields to store.

Returns

CreateAutoEmbeddingVectorSearchIndexModel<TDocument>

A new model with the fields configured.

WithIncludedStoredFields(params Expression<Func<TDocument, object>>[])

Creates a new CreateAutoEmbeddingVectorSearchIndexModel<TDocument> with the given fields configured to be stored in the index. Note that storing full documents might significantly impact performance during indexing and querying. Explicitly storing vector fields is not recommended.

public CreateAutoEmbeddingVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params Expression<Func<TDocument, object>>[] includedStoredFields)

Parameters

includedStoredFields Expression<Func<TDocument, object>>[]

The fields to store.

Returns

CreateAutoEmbeddingVectorSearchIndexModel<TDocument>

A new model with the fields configured.