change strategy for searching: use the AND between words, instead of OR

This commit is contained in:
2022-03-29 12:42:17 +02:00
parent 961c0a867c
commit de4f65fede
3 changed files with 9 additions and 9 deletions

View File

@@ -109,11 +109,11 @@ class ThirdPartyApiSearch implements SearchApiInterface
}
$query
->setSelectPertinence(implode(' + ', $pertinence), array_merge(
->setSelectPertinence(implode(' + ', $pertinence).' + 1', array_merge(
[],
...$pertinenceArgs
))
->andWhereClause(implode(' OR ', $wheres), array_merge(
->andWhereClause(implode(' AND ', $wheres), array_merge(
[],
...$whereArgs
));