Table of Contents

Interface ISearchIndexDefinition

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

Defines all or part of a MongoDB search index definition.

public interface ISearchIndexDefinition

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

Name

The name for this part of the index definition.

Methods

ToBson()

Generates the BSON for this part of the index definition.