-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useRefinementList not working as expected on a geopoint field #188
Comments
Generated query:
This is the problematic part:
It should have been:
|
Hi! any eta on this issue? |
Hey, I ended up using this to get my use case working. Doesn't look like refinement lists work with geopoint fields. |
Thank you very much. I use this temporary solution for now: const finalLocation = location ? location : undefined; const finalRadius = finalLocation ? radius * 1000 : undefined;
finalLocation: 45.5764258, -73.5466107 |
Yeah, I had tried the configure widget as well. That's good to apply the initial filter, but when the values change dynamically from the FE it wasn't filtering then, but the initial filter was working well with the Configure widget. |
location and radius are states so it's working when i change values dynamically. But it's rendering everytime! |
Description
The refine method on a geopoint field is giving an error.
Steps to reproduce
Expected Behavior
It should be able to refine results with lat, long and radius.
Actual Behavior
The error is
Error: 400 - Value of filter field location_geo: must be in the ([-44.50, 170.29], radius: 0.75 km, exact_filter_radius: 5 km) or ([56.33, -65.97, 23.82, -127.82], exact_filter_radius: 7 km) format.
Metadata
Typesense Version: 0.26.0.rc25
OS: Ubuntu
Ref: https://typesense-community.slack.com/archives/C01P749MET0/p1698234116317759
The text was updated successfully, but these errors were encountered: