Constructor MaxTokenLengthTokenizerDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
MaxTokenLengthTokenizerDefinition(string, int?)
Definition for any tokenizer that is configured with a MaxTokenLength.
public MaxTokenLengthTokenizerDefinition(string type, int? maxTokenLength)
Parameters
typestringThe tokenizer type name.
maxTokenLengthint?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.
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.