How to boost terms in product search

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 126
Joined: 09 Oct 2019, 09:42

How to boost terms in product search

Post by columbo » 18 Apr 2024, 16:27

Hi,

we have < 10.000 products but we'd like to boost certain search terms.
eg. Search for "A B C"
-> in the results list: B should always be on top (before A, C)

AFAIK Aimeos standard search does not support such optimisation - so we have to use Solr or Elasticsearch - right?

There is an extension for Solr, but for TYPO3.
Do I need it and does it also work for Laravel?

Do you have a recommendation as to whether Solr or Elasticsearch is more suitable for this requirement?

Thank you!

kdim95
Advanced
Posts: 207
Joined: 26 Aug 2022, 12:17

Re: How to boost terms in product search

Post by kdim95 » 18 Apr 2024, 19:02

Every product has a "boost" number, which you can set, does that work for you?

columbo
Advanced
Posts: 126
Joined: 09 Oct 2019, 09:42

Re: How to boost terms in product search

Post by columbo » 26 Apr 2024, 12:26

I could not find any documentation on this. How or where can the boost number be set?
as a ‘hidden attribute’?

kdim95
Advanced
Posts: 207
Joined: 26 Aug 2022, 12:17

Re: How to boost terms in product search

Post by kdim95 » 26 Apr 2024, 13:17

The boost factor can be set in the product in the administration.
When you are in the product "Basic tab", you need to expand the panel under "Label".
In that panel you should have a "Boost factor" for boosting product in the search results.
I think you should also be able to import products with the boost factor by adding the tag <product.boost> to the <productitem> in the XML.

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: How to boost terms in product search

Post by aimeos » 26 Apr 2024, 13:20

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

columbo
Advanced
Posts: 126
Joined: 09 Oct 2019, 09:42

Re: How to boost terms in product search

Post by columbo » 29 Apr 2024, 18:42

Found it - thanks!

Should this already work in aimeos 2023.10?
It is in the 2024 documentation, but the setting (in product > basic) is already available in 2023

Tried with different values (1.9 - 99) but no effect on the search results.
executed:
php artisan aimeos:jobs index/rebuild
php artisan aimeos:jobs index/optimize

We are using catalog/lists/sort = 'code'
Would this still work with "boost" function?

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: How to boost terms in product search

Post by aimeos » 30 Apr 2024, 06:58

columbo wrote: 29 Apr 2024, 18:42 Should this already work in aimeos 2023.10?
It is in the 2024 documentation, but the setting (in product > basic) is already available in 2023
Yes, it also works with 2023.10
columbo wrote: 29 Apr 2024, 18:42 We are using catalog/lists/sort = 'code'
Would this still work with "boost" function?
No, it only works if the result set is sorted by relevance in a full text search. With your default sorting, you can't boost any products obviously
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply