Skip to content

Correction of the the unit option for the GeoDistance filter (changed fr... #371

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

Merged
merged 1 commit into from
Oct 28, 2013
Merged

Conversation

gmarz
Copy link
Contributor

@gmarz gmarz commented Oct 28, 2013

This change fixes the unit option on the GeoDistance filter. There was an error in the Elasticsearch documentation stating that the parameter for specifying the distance unit was "distance_unit", however it is actually just "unit". This has since been corrected (See: elastic/elasticsearch#2771), but NEST was using the incorrect "distance_unit" parameter. Before this change, specifying the distance unit would cause Elasticsearch to throw a parsing exception. I've tested and confirmed this change in my application and have updated the unit test accordingly.

Mpdreamz added a commit that referenced this pull request Oct 28, 2013
Correction of the the unit option for the GeoDistance filter (changed fr...
@Mpdreamz Mpdreamz merged commit 6865c9b into elastic:master Oct 28, 2013
@Mpdreamz
Copy link
Member

Ty for submitting this PR @gmarz and thanks for linking to the appropiate elasticsearch issue 👍

@gmarz
Copy link
Contributor Author

gmarz commented Oct 28, 2013

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants