Class: Elasticsearch::DSL::Search::Filters::GeoDistance
- Inherits:
-
Object
- Object
- Elasticsearch::DSL::Search::Filters::GeoDistance
- Includes:
- BaseComponent
- Defined in:
- lib/elasticsearch/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.
65 66 67 68 |
# File 'lib/elasticsearch/dsl/search/filters/geo_distance.rb', line 65 def initialize(*args, &block) super @hash[self.name.to_sym] = { @args => {} } unless @args.empty? end |