You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Query DSLedit
The optimize_bbox parameter for geo_distance and geo_distance_range queries
has been deprecated when querying indexes created after 2.1.