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

Refactor geo_point validate_* and normalize_* for 1.7 #12300

Closed
wants to merge 3 commits into from

Conversation

nknize
Copy link
Contributor

@nknize nknize commented Jul 16, 2015

This PR deprecates validate_* and normalize_* options for geo_point field mapping in favor of more straight-forward validate and normalize parameters. This PR is for 1.7 only. 2.0 will completely remove these parameters.

No need to carry 3 validate and 3 normalize options in GeoPointFieldMapping. This is just causing confusion so this change deprecates the validate_lat, validate_lon, normalize_lat, and normalize_lon options and simply uses validate and normalize, respectively. Geo filters have also been updated to include a validate and normalize option to provide consistency with the mapping defaults. Unit tests and documentation have been updated.
…rmed/coerce, respectively. Docs updated to reflect change
@nknize
Copy link
Contributor Author

nknize commented Jul 20, 2015

@clintongormley made the suggested change from normalize/validate to coerce/ignore_malformed, respectively. This PR should be ready to go for 1.71. Will need to make 2.0 changes separately since the mapping logic is completely different.

@clintongormley
Copy link

@nknize i think in 2.0 we still need to maintain bwc. So we should accept the old settings when opening old indices, and translate them to the new settings. New indices should only accept the new settings.

Also, once merged into master, could you open an issue to add a check for this to the migration plugin

ta

@clintongormley
Copy link

Closed in favour of #10248

@nknize
Copy link
Contributor Author

nknize commented Jul 28, 2015

So we're keeping this change out of 1.7.x and going straight to 2.0, right?

@clintongormley
Copy link

Ahh sorry @nknize - when i was doing the release, I saw that #10248 had been merged and this one hadn't. I didn't look at the contents of the PR.

OK - let's move this to 2.0. We'll need to support the old normalize* and validate* parameters for bwc, but we should automatically migrate the settings to coerce/ignore_malformed.

@nknize nknize changed the title Deprecate geo_point validate_* and normalize_* Refactor geo_point validate_* and normalize_* for 1.7 Aug 10, 2015
@dakrone
Copy link
Member

dakrone commented Sep 1, 2015

We discussed this today, and since these are deprecated already in the docs for 1.7 and already removed in 2.0, there's no need to refactor them for 1.7. Closing this for now, thanks @nknize!

@dakrone dakrone closed this Sep 1, 2015
@nknize nknize deleted the deprecate/10170 branch May 27, 2016 16:28
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 >deprecation v2.0.0-beta2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants