Class SearchIndexSynonymDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
The definition for a synonym mapping in a MongoDB search index.
public class SearchIndexSynonymDefinition : SearchIndexDefinitionBase, ISearchIndexDefinition
- Inheritance
-
SearchIndexSynonymDefinition
- 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.
Properties
- AnalyzerName
The name of a well-known or custom analyzer.
- CollectionName
The name of the collection containing the synonyms.
Methods
- ToBson()
Generates the BSON for this part of the index definition.