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
Bad geopoint field should throw error #5390
Comments
+1 for throwing an error @chilling can you take a look this should be straight forward |
@s1monw @clintongormley I will fix it |
* moved `geo_point` parsing to GeoUtils * cleaned up `gzipped.json` for bulktest * merged `GeoPointFieldMapper` and `GeoPoint` parsing methods Closes elastic#5390
* moved `geo_point` parsing to GeoUtils * cleaned up `gzipped.json` for bulktest * merged `GeoPointFieldMapper` and `GeoPoint` parsing methods Closes #5390
Just in case somebody googles the corresponding exceptions. If you try to index a document containing incomplete or other invalid geo_point fields in Elasticsearch 1.1.0 and you get exceptions like "MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];" or "MapperParsingException[failed to parse]; nested: ElasticsearchParseException[geo_point expected];", the solution is to skip the whole geo_point field. See this gist: https://gist.github.com/hkorte/9936192 |
If a badly formatted object is passed to a geopoint when indexing a doc, it should throw an error. Instead, any fields after the bad geopoint are just ignored:
Result:
The text was updated successfully, but these errors were encountered: