BottomRight topLeft – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-6.8

Briefly, this error occurs when the coordinates provided for a geo_shape query in Elasticsearch are incorrect. The “bottomRight” and “topLeft” refer to the bounding box parameters for the query. The error suggests that the values provided for these parameters are either missing or invalid. To resolve this issue, ensure that you are providing valid coordinates for both “bottomRight” and “topLeft”. Also, check the format of your query to ensure it matches the expected format. If the error persists, consider re-indexing your data to ensure the geo_shape field is correctly mapped.

This guide will help you check for common problems that cause the log ” BottomRight {}; topLeft {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: aggregations.

Log Context

Log “BottomRight {}; topLeft {}” classname is geobounds-aggregation.asciidoc.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

// sr is here your SearchResponse object
GeoBounds agg = sr.getAggregations().get("agg");
GeoPoint bottomRight = agg.bottomRight();
GeoPoint topLeft = agg.topLeft();"bottomRight {}; topLeft {}"; bottomRight; topLeft);

This will basically produce:



How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?