Class SearchIndexGramTokenizerDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
public class SearchIndexGramTokenizerDefinition : SearchIndexTokenizerDefinition, ISearchIndexDefinition
- Inheritance
-
SearchIndexGramTokenizerDefinition
- 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.
Constructors
- SearchIndexGramTokenizerDefinition(string, int, int)
Definition for any tokenizer that is configured with a MinGram and MaxGram.
Properties
- MaxGram
Number of characters to include in the longest token created.
- MinGram
Number of characters to include in the shortest token created
- Name
Uses the type of the tokenizer to address this part of the index definition.
Methods
- ToBson()
Generates the BSON for this part of the index definition.