Error showing on charts after drawing


#1

Hey everyone! I was using the drawControl and after filtering by a shape I get this error in all my chart besides the map Error: [query_shard_exception] Field [FIELD] is not of type [geo_shape] but of type [geo_point], with { index_uuid=“Xm6x0YAYSyWC1im3TUogpw” & index=“INDEX” }. Do I need to set up my location field?


#2

That error comes directly from Elasticsearch provider. It means that your location field needs to be a geo_shape instead of geo_point. Geo points can be used for draw filters from Elasticsearch v7.8 but Chartfactor recommends to use v7.17 or above. To use draw filters please upgrade your Elasticsearch version.