SearchModelFactory.FreshnessScoringParameters(TimeSpan) Method

Definition

Provides parameter values to a freshness scoring function.

public static Azure.Search.Documents.Indexes.Models.FreshnessScoringParameters FreshnessScoringParameters(TimeSpan boostingDuration = default);
static member FreshnessScoringParameters : TimeSpan -> Azure.Search.Documents.Indexes.Models.FreshnessScoringParameters
Public Shared Function FreshnessScoringParameters (Optional boostingDuration As TimeSpan = Nothing) As FreshnessScoringParameters

Parameters

boostingDuration
TimeSpan

The expiration period after which boosting will stop for a particular document.

Returns

A new FreshnessScoringParameters instance for mocking.

Applies to