Class: OpenSearch::DSL::Search::Filters::GeoShape

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

Overview

A filter which returns documents which fall into a specified geographical shape

Examples:


search do
  query do
    filtered do
      filter do
        geo_shape :location do
          shape type: 'envelope',
                coordinates: [[14.2162566185,49.9415476869], [14.7149200439,50.1815123678]]
        end
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize