Class SearchIndexNumberDefinition
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
- Assembly
- MongoDB.EntityFrameworkCore.dll
A MongoDB search definition for the "number" type.
public class SearchIndexNumberDefinition : SearchIndexDefinitionBase, ISearchIndexDefinition
- Inheritance
-
SearchIndexNumberDefinition
- 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
- IndexDoubles
A flag that indicates whether to index or omit indexing floating-point values.
- IndexIntegers
A flag that indicates whether to index or omit indexing 32 and 64-bit integer values.
- Representation
The data type of the field to index.
Methods
- ToBson()
Generates the BSON for this part of the index definition.