次の方法で共有


QueryRequestOptions.FullTextScoreScope Property

Definition

Gets or sets the scope for computing BM25 statistics used by FullTextScore in hybrid search queries.

public Microsoft.Azure.Cosmos.FullTextScoreScope FullTextScoreScope { get; set; }
member this.FullTextScoreScope : Microsoft.Azure.Cosmos.FullTextScoreScope with get, set
Public Property FullTextScoreScope As FullTextScoreScope

Property Value

The scope for computing BM25 statistics. Defaults to Global.

Remarks

When set to Global, BM25 statistics (term frequency, inverse document frequency, and document length) are computed across all documents in the container, including all physical and logical partitions.

When set to Local, statistics are computed only over the subset of documents within the partition key values specified in the query request. This is useful for multi-tenant scenarios where scoring should reflect statistics that are accurate for a specific tenant's dataset.

Applies to