Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4925 by pixls
10 Nov 2017, 09:37
Hi

How do I go about modifying the product search? I haven't been able to find where i can modify the search to only search by product title. I have the following problem:

Lets say i have the products "Apple" and "Pie". The product "Pie" has the following description "contains apples and bannanas". If i were to search for "Apple" now the product "Pie" would show up in the search as well, because the description contains the word "apple" as well.

Btw thanks for sponsoring the TYPO3 camp Rhein-Ruhr. It was a great event :D
#4947 by aimeos
12 Nov 2017, 12:11
Not as easy as it seems a the first glance :-/
In the database, the domain and text type is stored but the interface of the index manager and controller doesn't allow to limit the texts for searching to e.g. "product" and "name".

An alternative would be to add a configuration to only index allowed text types here: https://github.com/aimeos/aimeos-core/blob/master/lib/mshoplib/src/MShop/Index/Manager/Text/Standard.php#L809