Fulltextsearch

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
heural
Posts: 85
Joined: 09 Jun 2022, 07:55

Fulltextsearch

Post by heural » 06 Jun 2025, 07:43

Hi Aimeos-Team,

we have trouble with the search function (jsonapi).
We have many products "photobook" and a search for that ends up in a Mysql-memory-error.
(we need more ram ;-)
at this query:

Code: Select all

SELECT COUNT(*) AS count
FROM (
SELECT mpro.id
FROM mshop_product mpro
LEFT JOIN mshop_index_catalog AS mindca USE INDEX (idx_msindca_s_ca_lt_po, unq_msindca_p_s_cid_lt_po) ON mindca.prodid = mpro.id
LEFT JOIN mshop_index_text AS mindte ON mindte.prodid = mpro.id
WHERE ( ( mpro.siteid IN ('','1.') ) AND ( ( mindca.catid IS NOT NULL AND ( ( mindte.siteid IN ('','1.') ) AND mindte.langid = 'de' AND MATCH( mindte.content ) AGAINST( '\'fotobuch* \"fotobuch\"\'' IN BOOLEAN MODE ) > 0 OR mpro.code LIKE 'fotobuch%' ESCAPE '#' ) AND ( ( mpro.status = 1 ) AND ( mpro.type = 'event' OR mpro.start IS NULL OR mpro.start = '2025-06-05 09:46:00' ) ) ) AND ( ( mpro.status = 1 ) AND ( mpro.type = 'event' OR mpro.start IS NULL OR mpro.start = '2025-06-05 09:46:00' ) ) ) )
GROUP BY mpro.id
ORDER BY mpro.id
LIMIT 1000 OFFSET 0
) AS list

However, in investigating for that problem we found that
  • the indexer is not filtering html-Tags out
  • the "last AND part" is twice
Thanks a lot!

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

Re: Fulltextsearch

Post by aimeos » 06 Jun 2025, 20:56

Thanks for your report. Are you able to create a PR with the necessary changes to improve the full text search?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply