You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One might argue that not being able to handle primitive arrays is not a bug. I wanted to report this anyway because it took me a very long time to debug. When doing something like this
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: the character '[' is not a valid geohash character
at org.elasticsearch.common.geo.GeoHashUtils.decode(GeoHashUtils.java:280)
at org.elasticsearch.common.geo.GeoHashUtils.decodeCell(GeoHashUtils.java:320)
at org.elasticsearch.common.geo.GeoHashUtils.decode(GeoHashUtils.java:297)
at org.elasticsearch.common.geo.GeoHashUtils.decode(GeoHashUtils.java:286)
at org.elasticsearch.index.mapper.geo.GeoPointFieldMapper.parseGeohash(GeoPointFieldMapper.java:456)
at org.elasticsearch.index.mapper.geo.GeoPointFieldMapper.parseStringLatLon(GeoPointFieldMapper.java:382)
at org.elasticsearch.index.mapper.geo.GeoPointFieldMapper.parse(GeoPointFieldMapper.java:367)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:599)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:467)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:515)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:457)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:507)
...
Changing new double[]{} to new Double[]{} fixes the problem. Looking at XContentMapConverter.java, I have found that writeValue(...) does not handle primitive arrays.
Depending how you look at it, this can be a bug. :)
The text was updated successfully, but these errors were encountered:
One might argue that not being able to handle primitive arrays is not a bug. I wanted to report this anyway because it took me a very long time to debug. When doing something like this
I received
Changing
new double[]{}
tonew Double[]{}
fixes the problem. Looking atXContentMapConverter.java
, I have found thatwriteValue(...)
does not handle primitive arrays.Depending how you look at it, this can be a bug. :)
The text was updated successfully, but these errors were encountered: