Method WithIncludedStoredFields
WithIncludedStoredFields(params FieldDefinition<TDocument>[])
Creates a new CreateVectorSearchIndexModel<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 CreateVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params FieldDefinition<TDocument>[] includedStoredFields)
Parameters
includedStoredFieldsFieldDefinition<TDocument>[]The fields to store.
Returns
- CreateVectorSearchIndexModel<TDocument>
A new model with the fields configured.
WithIncludedStoredFields(params Expression<Func<TDocument, object>>[])
Creates a new CreateVectorSearchIndexModel<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 CreateVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params Expression<Func<TDocument, object>>[] includedStoredFields)
Parameters
includedStoredFieldsExpression<Func<TDocument, object>>[]The fields to store.
Returns
- CreateVectorSearchIndexModel<TDocument>
A new model with the fields configured.