ElasticPress icon indicating copy to clipboard operation
ElasticPress copied to clipboard

Feature: Decay adjustments

Open tott opened this issue 4 years ago • 0 comments

In various use cases the age of a post can be a relevant factor for its importance. Ie. for a news site more recent content is more relevant while for a shop the age of a product might not be relevant. For a site dealing with scientific data more recent might still be relevant but the metrics to consider still differ a lot from a news site.

Luckily Elasticsearch offer a decay function that can be used and is already implemented to some degree into ElasticPress, however it would be great to make this configuration more intuitive and more refined.

Ideally there should be an interface that allows adjustment of all the variables of the decay function outlined at https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay and build the resulting search query accordingly.

A nice interface that allows for dynamic visualization of the selected values similar to

Decay graph

and intelligently adjusting the scale to the available content would be ideal.

Additionally usage profiles for common use cases could be implemented to set reasonable default settings.

tott avatar Feb 16 '21 13:02 tott