catalog-suggest restrict search

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Bernhard
Posts: 3
Joined: 03 Jun 2020, 13:06

catalog-suggest restrict search

Post by Bernhard » 03 Jun 2020, 14:01

Hi all,
how can I limit the search-suggests to the search in the product name (or product name, short and long?)
Background is that a lot of the products in our shop contain certain components (e.g. distilled water), so that when searching for "distilled water" almost all products appear.
Another variant would be to sort the results in the product names at the top of the list.
Thanks in advance
Bernhard

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

Re: catalog-suggest restrict search

Post by aimeos » 03 Jun 2020, 17:13

If you really want to change the indexing process, you need to overwrite this method:
https://github.com/aimeos/aimeos-core/b ... #L684-L734
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bernhard
Posts: 3
Joined: 03 Jun 2020, 13:06

Re: catalog-suggest restrict search

Post by Bernhard » 05 Jun 2020, 07:17

Hi,
thanks for the advice.
I think it would be nice to have a possibility to configure the type-ahead suggestion list (as well as the search plugin?) to search and display only the product names from the index.
Regards Bernhard

Post Reply