Skip to content
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

Fix GeoPointFieldMapper to index geohash at correct precision. #13649

Closed
wants to merge 0 commits into from

Conversation

nknize
Copy link
Contributor

@nknize nknize commented Sep 18, 2015

Fixes a bug with GeoPointFieldMapper where geohash was only indexed if geohash_precision was set to 12. This also adds test coverage for varying geohash precision and geohash_prefix indexing.

closes #12467

@nknize nknize added review :Analytics/Geo Indexing, search aggregations of geo points and shapes v2.0.0 >bug labels Sep 18, 2015
/**
* Test Coverage for GeoPointField
*/
public class GeoPointSearchTests extends ESSingleNodeTestCase {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a new file? We have thousands of files...it would be nice if these tests could go in GeoPointFieldMapperTests...

@rjernst
Copy link
Member

rjernst commented Sep 18, 2015

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug v2.1.0 v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geohash is not indexed unless the precision is 12
3 participants