The search function in PrestaShop can be further configured so that search categories involved in the search can have a "weight" applied.  This allows this area of text for a product to have a stressed importance.  For example, if you want to have the product name have more weight than the product description, you can apply a higher numerical value to that category.  This affects the search so that even if the text for the product name is found less times than would typically be in a description, it would still be of more relevance to the search because of its given weight.  The following article explains how to apply weight for searches in PrestaShop 1.5. If you are looking for more information concerning configuring the Search options for PrestaShop, please go to Configuring Search for PrestaShop 1.5.

 

Applying Weight to Search Terms in PrestaShop 1.5

  1. Login to the PrestaShop Administrator Dashboard.
  2. Using your mouse, hover over the menu bar where it is labeled PREFERENCES.  Click on SEARCH when it appears in the drop-down menu and scroll down to the last section labeled WEIGHT.  You will see a screen as per the following:

    preferences-search-weight

    It is recommended to place highest values for the text field that will typically have the greatest value to a search of your products. Each of the items above are the text fields associated with the product.  An example of how this weighting would work is as follows:


    Product name= Apple iPhone 5 (weight of 6); search engine finds the term once
    Description = Apple iPhone (weight of 1); search engine finds item multiple times across the multiple versions of iPhone.

    Since the Product name is weighted at 6, it is six times more relevant for the search than the description which found multiple instances of Apple iPhone.  This helps to narrow the search and make it more relevant for your inventory.

    Search result returned = Apple iPhone 5 product


  3. Apply weights to the product text fields, then click on SAVE in the top right hand corner to apply the change.

 

Using weight in a search is basically applying bias to the search, meaning that when a query is done, the search results will lean toward the text to which weight had been applied.  The results can be refined in this manner so that your product reference will have more relevance to the query as you have stressed it.  This is a difficult thing to visualize, but in understanding the way the search is operating, you can help your customers find the products most relevant to their needs.

For more information on Search Aliases, Indexation, and Configuration, please see 230: Understanding How to Configure the PrestaShop Search.

 

 

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}