Commit 50260574 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): rating filtering

1 merge request!235WIP: Boost Campaigns (&24)
Pipeline #71906136 passed with stages
in 9 minutes and 4 seconds
......@@ -49,7 +49,7 @@ class ElasticRepository
'owner_guid' => null,
'entity_urn' => null,
'state' => null,
'rating' => null,
'rating' => 3,
'quality' => null,
], $opts);
......@@ -129,9 +129,11 @@ class ElasticRepository
if ($opts['rating']) {
$must[] = [
'term' => [
'rating' => $opts['rating']
]
'range' => [
'rating' => [
'lte' => $opts['rating'],
],
],
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment