Skip to content

Commit

Permalink
Update query-helper.md (solariumphp#883)
Browse files Browse the repository at this point in the history
The sequence of parameters for the geofilt helper is wrong, the field should come first
  • Loading branch information
toonvandeputte authored Nov 3, 2020
1 parent 346355d commit 97704b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/queries/query-helper/query-helper.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $helper = $query->getHelper();
$query->createFilterQuery('price')->setQuery($helper->rangeQuery('price', 10, 300));

// add a filterquery to find products in a range of 5km, using the helper to generate the 'geofilt' filter
$query->createFilterQuery('region')->setQuery($helper->geofilt(45.15, -93.85, 'store', 5));
$query->createFilterQuery('region')->setQuery($helper->geofilt('store', 45.15, -93.85, 5));

// this executes the query and returns the result
$resultset = $client->select($query);
Expand Down

0 comments on commit 97704b6

Please sign in to comment.