New feature: Search source weight options

Advanced Woo Search lets you assign weight values to each search source, so important fields like title, content or SKU rank their matches higher in product search results.

Overview

Starting from plugin version 3.59, it is possible to set weight values for each search source. Before that, this was only possible via PHP hooks.

Weight values for search sources

The weight value shows how important each product field is when ranking products in search results. A higher value means a greater impact. The available range is 1-999. Default weight values are set to provide optimal search results, but you can change them to any values you prefer.

How weight affects search results

Example: We set the weight to 350 for the Title field and 100 for the Content field. We have two products, A and B. Product A has the search term in its title, and product B has the same term in its content. With these weight values, product A will appear first in the search results.

If we change the values and set 350 for Content and 100 for Title, then with the same search query, product B will appear first.

Example of difference in weights values

How to set weight values

Simply go to the plugin settings page -> Search Config -> Search Engine and find the Search In option.

Click the gear icon next to each field to open its settings. There you can set the weight value for that specific field.

Weight option for search source

For fields like Taxonomies, Attributes, and Custom Fields, it is possible to set a global weight value for all child terms and also override this value for a specific term individually.

Weight option for custom field

If the weight value is empty here, it will inherit the value from the Custom Field source.

For Advanced Woo Search
Michael Barinov

Michael Barinov

I'm Michael — the developer behind KramaKit. I've spent 12+ years building tools for WooCommerce, trusted by 80,000+ stores. I work alone on purpose: it keeps things focused, and if you've ever emailed support, you've talked to me.

← Previous Release note: New options for non-products search results

Leave a comment

Take a look around. Or just say hi.

Browse the full plugin lineup, or send a question - we read every message and reply personally.