If you notice that your geolocation filters (ie: aroundLatLng, aroundLatLngViaIP ) are not working as expected for certain queries, please check to see if the results for that specific query are being re-ranked by visiting the Dynamic Re-Ranking preview dashboard.
If the query is being re-ranked, as mentioned in our DRR documentation, "Re-ranking may also override an eventual Geo filtering." This is expected behavior based on the order of operations applied by our search engine.
If you would like to enforce the geo filtering in this scenario and bypass the re-ranking, one potential solution would be to implement a rule in the Visual Editor that deactivates Dynamic Re-Ranking as a consequence of the specific query:
You could apply this rule anytime the query is entered, but you might also consider applying a more fine-grained rule condition. One possible approach would be to trigger a rule context to be sent with the query (ie:
ruleContexts: ['geo']
) whenever the search request to Algolia includes a geo-filter parameter. This context could then be used as either the sole condition or an additional condition for your rule.