Method GetOrAddSearchIndexSynonymDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
GetOrAddSearchIndexSynonymDefinition(string)
Finds the definition for the given synonym mapping name. If none is found, then a new instance is created and returned.
public SearchIndexSynonymDefinition GetOrAddSearchIndexSynonymDefinition(string synonymsName)
Parameters
synonymsNamestringThe name of the synonym mapping.
Returns
- SearchIndexSynonymDefinition
The existing definition, or a new one.