Using Weight in Searches for PrestaShop 1.5

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

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:

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:

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

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!