CosmosIndexBuilderExtensions.IsVectorIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>) |
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。 |
| IsVectorIndex(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean) |
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。 |
| IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>, Boolean) |
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。 |
| IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>) |
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。 |
| IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>, Boolean) |
将索引配置为具有给定向量索引类型的向量索引,例如“flat”、“diskANN”还是“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。 |
IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>)
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IndexBuilder, indexType As Nullable(Of VectorIndexType)) As IndexBuilder
参数
- indexBuilder
- IndexBuilder
要配置的索引的生成器。
- indexType
- Nullable<VectorIndexType>
要创建的向量索引的类型,或删除 null 向量索引配置。
返回
用于进一步配置索引的生成器。
注解
有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。
适用于
IsVectorIndex(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool fromDataAnnotation = false);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IConventionIndexBuilder, indexType As Nullable(Of VectorIndexType), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder
参数
- indexBuilder
- IConventionIndexBuilder
要配置的索引的生成器。
- indexType
- Nullable<VectorIndexType>
要创建的向量索引的类型,或删除 null 向量索引配置。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
如果应用了配置,则为同一生成器实例, null 否则为同一个生成器实例。
注解
有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。
适用于
IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>, Boolean)
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool vectorIndex = true);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IndexBuilder, indexType As Nullable(Of VectorIndexType), Optional vectorIndex As Boolean = true) As IndexBuilder
参数
- indexBuilder
- IndexBuilder
要配置的索引的生成器。
- indexType
- Nullable<VectorIndexType>
要创建的向量索引的类型。
- vectorIndex
- Boolean
指示索引是否配置为向量索引的值。
返回
用于进一步配置索引的生成器。
注解
有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。
适用于
IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)
将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> IsVectorIndex<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function IsVectorIndex(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), indexType As Nullable(Of VectorIndexType)) As IndexBuilder(Of TEntity)
类型参数
- TEntity
参数
- indexBuilder
- IndexBuilder<TEntity>
要配置的索引的生成器。
- indexType
- Nullable<VectorIndexType>
要创建的向量索引的类型,或删除 null 向量索引配置。
返回
用于进一步配置索引的生成器。
注解
有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。
适用于
IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>, Boolean)
将索引配置为具有给定向量索引类型的向量索引,例如“flat”、“diskANN”还是“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> IsVectorIndex<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool vectorIndex = true);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function IsVectorIndex(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), indexType As Nullable(Of VectorIndexType), Optional vectorIndex As Boolean = true) As IndexBuilder(Of TEntity)
类型参数
- TEntity
参数
- indexBuilder
- IndexBuilder<TEntity>
要配置的索引的生成器。
- indexType
- Nullable<VectorIndexType>
要创建的向量索引的类型。
- vectorIndex
- Boolean
指示索引是否配置为向量索引的值。
返回
用于进一步配置索引的生成器。
注解
有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。