In this article

filter

jetpack_search_recency_score_decay

Modify the recency decay parameters for the search query. The recency decay lowers the search scores based on the age of a post relative to an origin date. Basic adjustments: – origin: A date. Posts with this date will have the highest score and no decay applied. Default is today. – offset: Number of days/months/years (eg 30d). All posts within this time range of the origin (before and after) will have no decay applied. Default is no offset. – scale: The number of days/months/years from the origin+offset at which the decay will equal the decay param. Default 360d – decay: The amount of decay applied at offset+scale. Default 0.9. The curve applied is a Gaussian. More details available at {@see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay}

Parameters

$decay_params
array

The decay parameters.

$args
array

The WP query parameters.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.