Feature: Decay adjustments

Open
#2,085 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
elasticsearch, php, wordpress
Domain
search

Research direction

Start by locating ElasticPress's existing decay-function implementation and comparing its configuration with Elasticsearch's function-score decay documentation. Then scope the required settings, visualization, and usage profiles; done means the supported variables, defaults, interface, and resulting query behavior are specified.

Written by the indexing model from the issue text.

Description

module:posts new feature

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.

Dominant language
PHP
Stars
1.3k
Forks
325
Avg merge
2d 11h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/ElasticPress

All issues in 10up/ElasticPress

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.