Class: OpenSearch::DSL::Search::Filters::GeoDistanceRange

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

Overview

A filter which returns documents which fall into a specified geographical distance range

Examples:

Define the filter with a hash


search do
  query do
    filtered do
      filter do
        geo_distance location: '50.090223,14.399590', gte: '2km', lte: '5km'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize