Table of Contents

Class SearchIndexAutoCompleteDefinition

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

A MongoDB search definition for the "autocomplete" type.

public class SearchIndexAutoCompleteDefinition : SearchIndexDefinitionBase, ISearchIndexDefinition
Inheritance
SearchIndexAutoCompleteDefinition
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.

Properties

AnalyzerName

The name of the analyzer to use for auto-completion.

FoldDiacritics

Flag to perform normalizations such as including or removing diacritics from the indexed text.

MaxGrams

The maximum number of characters per indexed sequence.

MinGrams

The minimum number of characters per indexed sequence.

SimilarityAlgorithm

The similarity algorithms to use when scoring with the autocomplete operator.

Tokenization

The tokenization strategy to use when indexing the field for autocompletion.

Methods

ToBson()

Generates the BSON for this part of the index definition.