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

geo_point parsing doesn't ignore malformed points represented as a string #35419

Closed
imotov opened this issue Nov 9, 2018 · 0 comments
Closed
Assignees
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug

Comments

@imotov
Copy link
Contributor

imotov commented Nov 9, 2018

Looks like there are some use cases in #16137 that were not fully addressed in #16833. In particular, some values in string presentation of a geo_point are not handled correctly. To reproduce:

DELETE example

PUT example
{
    "mappings": {
        "doc": {
            "properties": {
                "location": {
                    "type": "geo_point",
                    "ignore_malformed": true
                }
            }
        }
    }
}

PUT example/doc/1
{
  "location": "NaN,NaN"
}

PUT example/doc/2
{
  "location": "-,-"
}
@imotov imotov added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes labels Nov 9, 2018
@imotov imotov changed the title geo_point parsing doesn't ignore malformed points represented in a string geo_point parsing doesn't ignore malformed points represented as a string Nov 9, 2018
@imotov imotov self-assigned this Nov 9, 2018
imotov added a commit to imotov/elasticsearch that referenced this issue Nov 14, 2018
Improves handling of malformed geo_points when `ignore_malformed` is
set to true

Closes elastic#35419
imotov added a commit that referenced this issue Nov 26, 2018
Improves handling of malformed geo_points when `ignore_malformed` is
set to true

Closes #35419
imotov added a commit that referenced this issue Nov 27, 2018
Improves handling of malformed geo_points when `ignore_malformed` is
set to true

Closes #35419
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
Projects
None yet
Development

No branches or pull requests

1 participant