语言

CosmosIndexBuilderExtensions 类

定义

Azure Cosmos DB特定的扩展方法。IndexBuilder

[System.Runtime.CompilerServices.Nullable(0)]
public static class CosmosIndexBuilderExtensions
[System.Runtime.CompilerServices.Nullable(0)]
[System.Diagnostics.CodeAnalysis.Experimental("EF9103")]
public static class CosmosIndexBuilderExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosIndexBuilderExtensions = class
[<System.Runtime.CompilerServices.Nullable(0)>]
[<System.Diagnostics.CodeAnalysis.Experimental("EF9103")>]
type CosmosIndexBuilderExtensions = class
Public Module CosmosIndexBuilderExtensions
继承
CosmosIndexBuilderExtensions
特性

注解

有关详细信息和示例,请参阅使用 EF Core 访问Azure Cosmos DB建模实体类型和关系。

方法

名称 说明
CanSetIsFullTextIndex(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

返回一个值,该值指示是否可以将索引配置为全文索引。

CanSetVectorIndexType(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

返回一个值,该值指示是否可以为向量配置向量索引。

ForVectors(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

将索引配置为具有给定向量索引类型的向量索引,例如“flat”、“diskANN”还是“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

ForVectors(IndexBuilder, Nullable<VectorIndexType>)

将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

ForVectors<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

将索引配置为具有给定向量索引类型的向量索引,例如“flat”、“diskANN”还是“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

IsFullTextIndex(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

将索引配置为全文索引。 有关详细信息,请参阅Azure Cosmos DB中的全文搜索,了解NoSQL。

IsFullTextIndex(IndexBuilder, Boolean)

将索引配置为全文索引。 有关详细信息,请参阅Azure Cosmos DB中的全文搜索,了解NoSQL。

IsFullTextIndex<TEntity>(IndexBuilder<TEntity>, Boolean)

将索引配置为全文索引。 有关详细信息,请参阅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(IndexBuilder, Nullable<VectorIndexType>)

将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>, Boolean)

将索引配置为具有给定向量索引类型的向量索引,例如“flat”、“diskANN”还是“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

将索引配置为具有给定矢量索引类型的向量索引,例如“flat”、“diskANN”或“quantizedFlat”。 有关详细信息,请参阅Azure Cosmos DB中的矢量搜索,了解NoSQL。

适用于