Table of Contents

Class MaxTokenLengthTokenizerDefinition

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

Definition for any tokenizer that is configured with a MaxTokenLength.

public class MaxTokenLengthTokenizerDefinition : SearchIndexTokenizerDefinition, ISearchIndexDefinition
Inheritance
MaxTokenLengthTokenizerDefinition
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

MaxTokenLengthTokenizerDefinition(string, int?)

Definition for any tokenizer that is configured with a MaxTokenLength.

Properties

MaxTokenLength

The maximum length for a single token. Tokens greater than this length are split at this length into multiple tokens. If not specified, then the default is 255.

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.