SearchModelFactory.FreshnessPolicy(String) Method

Definition

Configuration for freshness-aware retrieval. When set, newer documents receive a ranking boost during retrieval.

public static Azure.Search.Documents.KnowledgeBases.Models.FreshnessPolicy FreshnessPolicy(string boostingDuration = default);
static member FreshnessPolicy : string -> Azure.Search.Documents.KnowledgeBases.Models.FreshnessPolicy
Public Shared Function FreshnessPolicy (Optional boostingDuration As String = Nothing) As FreshnessPolicy

Parameters

boostingDuration
String

ISO 8601 duration for the freshness boosting window (e.g. 'P90D' for 90 days). Documents newer than this duration receive a ranking boost during retrieval.

Returns

A new FreshnessPolicy instance for mocking.

Applies to