Table of Contents

Class SearchIndexSynonymsDefinition

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

The definition for the collection of synonym mappings added to an index.

public class SearchIndexSynonymsDefinition : SearchIndexDefinitionBase, ISearchIndexDefinition
Inheritance
SearchIndexSynonymsDefinition
Implements
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.

Methods

GetOrAddSearchIndexSynonymDefinition(string)

Finds the definition for the given synonym mapping name. If none is found, then a new instance is created and returned.

ToBson()

Generates the BSON for this part of the index definition.