From 0684f3b39fbafb0efe8b8d30f6921f18eb64f396 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 26 Feb 2024 00:00:00 +0000 Subject: [PATCH] Fixed search with multiple fulltext indexes. --- application/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Module.php b/application/Module.php index 7ef977cd5..399b01b8a 100644 --- a/application/Module.php +++ b/application/Module.php @@ -710,7 +710,7 @@ public function searchFulltext(ZendEvent $event) } $qb = $event->getParam('queryBuilder'); - $match = 'MATCH(omeka_fulltext_search.title, omeka_fulltext_search.record, omeka_fulltext_search.text) AGAINST (:omeka_fulltext_search)'; + $match = '(MATCH(omeka_fulltext_search.title, omeka_fulltext_search.record) AGAINST (:omeka_fulltext_search) OR MATCH(omeka_fulltext_search.text) AGAINST (:omeka_fulltext_search))'; if ('api.search.query' === $event->getName()) {