Share via


CosmosIndexBuilderExtensions.CanSetIsFullTextIndex Method

Definition

Returns a value indicating whether the index can be configured as a full-text index.

public static bool CanSetIsFullTextIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, bool? fullTextIndex, bool fromDataAnnotation = false);
static member CanSetIsFullTextIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetIsFullTextIndex (indexBuilder As IConventionIndexBuilder, fullTextIndex As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

indexBuilder
IConventionIndexBuilder

The builder for the index being configured.

fullTextIndex
Nullable<Boolean>

The value indicating whether the index is configured for Full-text search.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the index can be configured as a Full-text index.

Remarks

See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to