-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Reindex confict: "proceed" throws error when casting malformed data to geo_point
#17617
Comments
That doesn't look like a bug to me. Maybe a documentation bug. If you want to skip the ones with invalid Geo points maybe you can craft
|
We probably should clarify a bit further in the documentation what "conflicts" means. Its a bit implicit by the fact that the return result says "version_conflicts", but I could see how somebody could miss that and assume this will skip more problem types |
I tend to think there is a bug with I tried reproducing this on master by indexing a doc with null lat/lon. It gave me a different error from above:
It seems the |
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to elastic#17617
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to elastic#17617
Improved XContentSubParser to allow any token, which is useful for wrapping in cases where both object and values are allowed. Related to elastic#17617
Reverted to a minimalistic change. Related to elastic#17617
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to #17617
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to #17617
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to #17617
When geo point parsing threw a parse exception, it did not consume remaining tokens from the parser. This in turn meant that indexing documents with malformed geo points into mappings with ignore_malformed=true would fail in some cases, since DocumentParser expects geo_point parsing to end on the END_OBJECT token. Related to #17617
Fixed above mentioned bug in geo_point parsing and clarified meaning of |
When reindexing malformed object to
geo_point
theconflict
parameter is ignorred and stops the taskexample doc
with mapping:
reindexing to
exception:
Elasticsearch version:
docker:latest (2.3)
example query
The text was updated successfully, but these errors were encountered: