Table of Contents

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

pattern string

The regular expression to match against.

group int

Index of the character group within the matching expression to extract into tokens. Use 0 to 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.