Constructor RegexCaptureGroupTokenizerDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
RegexCaptureGroupTokenizerDefinition(string, int)
Definition for the "regex" tokenizer.
public RegexCaptureGroupTokenizerDefinition(string pattern, int group)
Parameters
patternstringThe regular expression to match against.
groupintIndex of the character group within the matching expression to extract into tokens. Use
0to extract all character groups.
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.