Class: OpenSearch::DSL::Search::Filters::GeoDistance
- Inherits:
-
Object
- Object
- OpenSearch::DSL::Search::Filters::GeoDistance
- Includes:
- BaseComponent
- Defined in:
- lib/opensearch/dsl/search/filters/geo_distance.rb
Overview
A filter which returns documents which fall into a specified geographical distance
See the integration test for a working example.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ GeoDistance
constructor
A new instance of GeoDistance.
Methods included from BaseComponent
Constructor Details
#initialize(*args, &block) ⇒ GeoDistance
Returns a new instance of GeoDistance.
74 75 76 77 |
# File 'lib/opensearch/dsl/search/filters/geo_distance.rb', line 74 def initialize(*args, &block) super @hash[self.name.to_sym] = { @args => {} } unless @args.empty? end |