語言

CosmosIndexExtensions 類別

定義

Azure Cosmos DB 特定元數據的索引擴展方法。

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

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

方法

名稱 Description
GetIsFullTextIndexConfigurationSource(IConventionIndex)

回傳 對於ConfigurationSource是否 。IsFullTextIndex(IReadOnlyIndex)

GetVectorIndexType(IReadOnlyIndex)

回傳可使用的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

GetVectorIndexTypeConfigurationSource(IConventionIndex)

回傳 對於ConfigurationSource是否 。GetVectorIndexType(IReadOnlyIndex)

IsFullTextIndex(IReadOnlyIndex)

回傳索引是否設定為全文搜尋的值。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的全文搜尋 NoSQL。

SetIsFullTextIndex(IConventionIndex, Nullable<Boolean>, Boolean)

設定索引以進行全文搜尋。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的全文搜尋 NoSQL。

SetIsFullTextIndex(IMutableIndex, Nullable<Boolean>)

設定索引以進行全文搜尋。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的全文搜尋 NoSQL。

SetVectorIndexType(IConventionIndex, Nullable<VectorIndexType>, Boolean)

設定向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

SetVectorIndexType(IConventionIndex, Nullable<VectorIndexType>, Nullable<Boolean>, Boolean)

設定向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

SetVectorIndexType(IMutableIndex, Nullable<VectorIndexType>, Nullable<Boolean>)

設定向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

SetVectorIndexType(IMutableIndex, Nullable<VectorIndexType>)

設定向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

適用於