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 ignore_malformed and coerce GeoPointFieldType to Builder #13289

Merged
merged 1 commit into from Sep 3, 2015

Conversation

nknize
Copy link
Contributor

@nknize nknize commented Sep 2, 2015

This PR moves ignore_malformed and coerce from the GeoPointFieldType to the Builder in GeoPointFieldMapper since they are only needed at parse time. This makes these options consistent with the behavior of other ES core types.

closes #13285

@nknize nknize added review :Analytics/Geo Indexing, search aggregations of geo points and shapes :Search/Mapping Index mappings, including merging and defining field types v2.0.0 labels Sep 2, 2015
if (ignoreMalformed != null) {
return new Explicit<>(ignoreMalformed, true);
}
if (context.indexSettings() != null) {
Copy link
Member

Choose a reason for hiding this comment

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

Hrm, I hate adding another use looking up an index setting within mappings. I know the other field mappers do this, but I was hoping to remove this setting sometime soon. @clintongormley do you think we need to support this here?

@rjernst
Copy link
Member

rjernst commented Sep 3, 2015

LGTM

This commit moves ignore_malformed and coerce options from the GeoPointFieldType to the Builder in GeoPointFieldMapper. This makes these options consistent with other types in 2.0.
@nknize nknize merged commit 17460ae into elastic:master Sep 3, 2015
@clintongormley clintongormley added v2.0.0-beta2 >enhancement and removed v2.0.0 :Analytics/Geo Indexing, search aggregations of geo points and shapes labels Sep 14, 2015
@nknize nknize deleted the enhancement/13285 branch May 27, 2016 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor ignore_malformed and coerce options from geo_point field type to mapper
3 participants