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()) {