Class: OpenSearch::DSL::Search::Filters::GeoBoundingBox

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/dsl/search/filters/geo_bounding_box.rb

Overview

A filter which returns documents which fall into a “box” of the specified geographical coordinates

See the integration test for a working example.

Use eg. <boundingbox.klokantech.com> to visually define the bounding box.

Examples:


search do
  query do
    filtered do
      filter do
        geo_bounding_box :location do
          top_right   "50.1815123678,14.7149200439"
          bottom_left "49.9415476869,14.2162566185"
        end
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize