mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
change strategy for searching: use the AND between words, instead of OR
This commit is contained in:
@@ -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
|
||||
));
|
||||
|
Reference in New Issue
Block a user