Table of Contents

Class RegexCaptureGroupTokenizerDefinition

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

Definition for the "regex" tokenizer.

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

RegexCaptureGroupTokenizerDefinition(string, int)

Definition for the "regex" tokenizer.

Properties

Group

Index of the character group within the matching expression to extract into tokens. Use 0 to extract all character groups.

Name

Uses the type of the tokenizer to address this part of the index definition.

Pattern

The regular expression to match against.

Methods

ToBson()

Generates the BSON for this part of the index definition.