Table of Contents

Class EmbeddedSearchIndexDefinitionBase

Namespace
MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
Assembly
MongoDB.EntityFrameworkCore.dll

Defines a MongoDB search index part that contains field mappings for an embedded (nested) document, or an array of embedded (nested) documents.

public abstract class EmbeddedSearchIndexDefinitionBase : SearchIndexDefinitionWithFields, ISearchIndexDefinition
Inheritance
EmbeddedSearchIndexDefinitionBase
Implements
Derived
Inherited Members

Remarks

This type is typically used by the database provider. It is only needed by applications when reading metadata from EF Core. Use HasSearchIndex(EntityTypeBuilder, string?) or one of its overloads to configure a MongoDB search index.

Properties

EmbeddingType

Returns "document" for a single embedded (nested) document, or "embeddedDocuments" for an embedded (nested) array of documents.

Methods

ToBson()

Generates BSON for the part of the index definition representing the embedded document(s).