SearchModelFactory.FreshnessScoringParameters(TimeSpan) 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.
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.