Skip to content

Commit

Permalink
Fixed search with multiple fulltext indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Feb 26, 2024
1 parent e6c76e0 commit 0684f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {

Expand Down

0 comments on commit 0684f3b

Please sign in to comment.