Closed usovichivan closed 3 years ago
Hi @usovichivan, I think a boolean query would work for you, something like:
$searchResult = Lot1:: boolSearch()
->must('match', ['body_style' => 'SUV'])
->must('range', ['bid' => ['gte' => 1000, 'lte' => 10000]])
// -> ...
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
is it possible to combine "match" with "range" something like this? $searchResult = Lot1::rawSearch() ->query([ 'match' => ['body_style' => 'SUV'], "range" => [ "bid" => ["gte" => 1000, "lte" => 10000] ] ]) ->aggregate('exterior_color', [ 'terms' => [ 'field' => 'exterior_color', ], ]) ->aggregate('drive_train', [ 'terms' => [ 'field' => 'drive_train', ], ]) ->size(25) ->execute();