-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Error using miles for percision in Geo Location Context #24807
Comments
Any update on this? I am also facing the same issue. From the logs it looks like the 'precision' field can only be numeric type and thus fails when a string is parsed into it. Is the documentation incorrect or am I providing a wrong query here. Any help will be greatly appreciated. |
I'm also noticing this bug on 5.5 as well. |
Adds support for distance measure, such as "4km", "5m" in the precision field of the geo location context in context suggesters. Fixes elastic#24807
Adds support for distance measure, such as "4km", "5m" in the precision field of the geo location context in context suggesters. Fixes #24807
Adds support for distance measure, such as "4km", "5m" in the precision field of the geo location context in context suggesters. Fixes #24807
I am using ES version 6,2.0, but still getting the same parsing error for "precision" if value is "5m" etc. Works ok if integer. |
@vandanachadha it was fixed by #29273 As you can see from labels on the issue it was fixed only in 6.3.0 and above. So, it is expected to get the same parsing error in 6.2.0, which was released 2 months before the issue was fixed. |
Elasticsearch version:
5.1.2
Description of the problem including expected versus actual behavior:
Here is the search I want to run:
I need to provide my precision in distance. The docs state this is possible:
But instead of getting stores within that geo location, I get this error response:
If i change precision to
1
(or any number in (1..12)), my search completes with no errors.Steps to reproduce:
result:
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: