Search: AI, Hybrid, Classic

  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Menu
  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Search
Search
Search
Search

Home » Your configuration journey, step by step » Add-ons » Advanced Scoring add-on

Advanced Scoring add-on

842 views 0 August 31, 2020

What is the “Advanced scoring” add-on?

Every WooCommerce store owner wants to solve the “Freshness vs relevant” paradigm.

By default, results in a search are ordered by relevancy: the most relevant products related to the search keywords are displayed first.

But what if the most relevant products are also the oldest ? or the more expensive ? Showing older or more expensive products first is not good, everyone can agree on that.

Hey, but why not sort results by recent dates or lower prices ? Sure, it should solve the issue, no ?

Well, unfortunately, it would not. Because sorting is a very destructive option: it erases completely the results relevancy. Which means instead of getting old or expensive relevan results, you would get new or cheap un-relevant results.

Decay scoring

Scoring is how search engines like Elasticsearch are sorting results by default. It gives a score, a number, to every document in the index, relative to the search keywords.

When you set another sort, like date or price, you just give away the scoring.

The idea with decay scoring, used by the Advanced Scoring Extension, is to continue to use the score as the default sort. By modifying the scoring number with a function that includes a “decay”.

The “decay” being a distance calculated from a date or a number, like the posts publication date or the products price, or products stock quantity, or any other products promotional indicator.

See a detailed Elasticsearch decay function documentation

 

Activate the “Advanced scoring” add-on

Image word-image-82.png of Advanced Scoring add-on

  1. Select the “Extensions” tab
  2. Select the “Advanced scoring” tab
  3. Select the “Activate the “” extension checkbox
  4. Save

 

Activate the “Decay scoring” option

“Decay scoring” is the first scoring implemented in the “Advanced scoring” extension. Other scorings will follow.

Image word-image-83.png of Advanced Scoring add-on

  1. Activate the “Decay scoring” extension
  2. Select the fields that will be modified by the decay scoring. Only fields which have a numeric or a date type in tab 2.2 will be selectable here. More detailed on each field type setup below in the documentation.
  3. Save

 

Decay scoring on a Date field

Here is a description of the decay settings for a Date field. Here we selected the post type date field.
Let’s assume we want to display post types that are accurate, but also are recent.

Image word-image-84.png of Advanced Scoring add-on

  1. the “displaydate_dt” field was selected on the previous step.
  2. Select the type of decay function (Elasticsearch decay function documentation)
  3. Select the origin for the decay function: now.
    The farther from now your results are, the more penalty they get.
  4. Select the origin for the decay function: a fixed date.
    The farther from the fixed date your results are, the more penalty they get.
  5. Enter a start, in days.
    From origin to start, no penalty is applied.
  6. Enter a distance from start, in days.
    This is an estimation of how far the penalty will be applied.
  7. Enter a penalty, in %.
    Set a penalty value > 0 and < 1. It defines how much penalty is applied to values at the start + distance you defined above. “0.33” means the score is divided by 3 at the start + distance. Other penalties from offset are calculated by the function shape.

 

Decay scoring on a numeric field

Here is a description of the decay settings for a Numeric field. Here we selected the price field.
Let’s assume we want to display products that are accurate, but also are cheap (or expensive).

Image word-image-85.png of Advanced Scoring add-on

  1. A price field was selected on the previous step.
  2. Select the type of decay function (Elasticsearch decay function documentation)
  3. Select the origin for the decay function.
    The farther from it your results are, the more penalty they get. So, enter “0” to display low prices first, and “999999” to display first high prices.
  4. Enter a start.
    From origin to start, no penalty is applied.
  5. Enter a distance from start.
    This is an estimation of how far the penalty will be applied.
  6. Enter a penalty, in %.
    Set a penalty value > 0 and < 1. It defines how much penalty is applied to values at the start + distance you defined above. “0.33” means the score is divided by 3 at the start + distance. Other penalties from offset are calculated by the function shape.

Was this helpful?

Yes  No
Related Articles
  • Hybrid search
  • Question Answering
  • Cohere
  • OpenAI
  • HuggingFace
  • CLIP

Didn't find your answer? Contact Us

Previously
ACF add-on
Up Next
Cron Scheduling add-on
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Create a Google Retail search index
      • Create a Weaviate index
        • Transformers
        • CLIP
        • HuggingFace
        • OpenAI
        • Cohere
        • Question Answering
        • Hybrid search
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Amazon AWS OpenSearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon AWS Elasticsearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap