Table of Contents

Constructor SearchIndexGramTokenizerDefinition

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

SearchIndexGramTokenizerDefinition(string, int, int)

Definition for any tokenizer that is configured with a MinGram and MaxGram.

public SearchIndexGramTokenizerDefinition(string type, int minGram, int maxGram)

Parameters

type string

The tokenizer type name.

minGram int

Number of characters to include in the shortest token created.

maxGram int

Number of characters to include in the longest token created.

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.