Class: Caoutsearch::Filter::GeoPoint

Inherits:
Base
  • Object
show all
Defined in:
lib/caoutsearch/filter/geo_point.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #options, #original_value, #type

Instance Method Summary collapse

Methods inherited from Base

#as_json, call, #initialize, #value

Constructor Details

This class inherits a constructor from Caoutsearch::Filter::Base

Instance Method Details

#filterObject



6
7
8
# File 'lib/caoutsearch/filter/geo_point.rb', line 6

def filter
  {geo_distance: {:distance => "1mm", key => value}}
end