FreshnessPolicy Class
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 class FreshnessPolicy : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.KnowledgeBases.Models.FreshnessPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.KnowledgeBases.Models.FreshnessPolicy>
type FreshnessPolicy = class
interface IJsonModel<FreshnessPolicy>
interface IPersistableModel<FreshnessPolicy>
Public Class FreshnessPolicy
Implements IJsonModel(Of FreshnessPolicy), IPersistableModel(Of FreshnessPolicy)
- Inheritance
-
FreshnessPolicy
- Implements
Constructors
| Name | Description |
|---|---|
| FreshnessPolicy() |
Initializes a new instance of FreshnessPolicy. |
Properties
| Name | Description |
|---|---|
| BoostingDuration |
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. |