Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a help text for field "Weight results by date" #2291

Closed
Rahmon opened this issue Aug 3, 2021 · 1 comment
Closed

Add a help text for field "Weight results by date" #2291

Rahmon opened this issue Aug 3, 2021 · 1 comment
Labels
enhancement module:posts Issues related to the Posts Indexable / Feature. module:woocommerce Issues related to the WooCommerce functionality

Comments

@Rahmon
Copy link
Contributor

Rahmon commented Aug 3, 2021

Is your enhancement related to a problem? Please describe.
No.

Describe the solution you'd like
When the field "Weight results by date" is enabled the Elasticsearch will not compute the decay function for documents that were created with a distance less than 7 seven days (default value defined by ElasticPress) from the origin (current date). This is a way to boost the most recent documents.

Although this is interesting for pages and posts, it couldn't be for products. Especially when the algorithm version 3.4 is used. So, my suggestion is to add a help text for the field "Weight results by date" to clarify this behavior.

Example how it happens:

  • Enable "Weight results by date" field, WooCommerce feature and, algorithm version 3.4
  • Create three products: Eanie, Beanie, and Beanie with Logo
  • Change the published date for Beanie and Beanie with Logo for a month behind
  • Search for "Beanie"

Results:

  1. Eanie
  2. Beanie
  3. Beanie with Logo

Disabling "Weight results by date" the result for the same search is:

  1. Beanie
  2. Beanie with Logo
  3. Eanie

Designs

Describe alternatives you've considered
Detecting if WooCommerce Feature and "Weight results by date" field is enabled, then show a warning in the Post Search feature.

Additional context

@jeffpaul jeffpaul added the Hacktoberfest Issues targeted at contributors participating in the https://hacktoberfest.digitalocean.com/ event. label Sep 29, 2021
@felipeelia felipeelia added module:woocommerce Issues related to the WooCommerce functionality module:posts Issues related to the Posts Indexable / Feature. and removed Hacktoberfest Issues targeted at contributors participating in the https://hacktoberfest.digitalocean.com/ event. labels Mar 31, 2022
@felipeelia
Copy link
Member

Closed by #3462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement module:posts Issues related to the Posts Indexable / Feature. module:woocommerce Issues related to the WooCommerce functionality
Projects
None yet
Development

No branches or pull requests

3 participants