SearchModelFactory.FreshnessPolicy(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.