Sha256: d9cde5f13e3017e5bc2f293a0371df70c783f8a8ec1de2c875da30bba5ec4967
Contents?: true
Size: 445 Bytes
Versions: 7
Compression:
Stored size: 445 Bytes
Contents
module Sunspot module Query class Bbox def initialize(field, first_corner, second_corner) @field, @first_corner, @second_corner = field, first_corner, second_corner end def to_solr_conditional "[#{@first_corner.join(",")} TO #{@second_corner.join(",")}]" end def to_params filter = "#{@field.indexed_name}:#{to_solr_conditional}" {:fq => filter} end end end end
Version data entries
7 entries across 7 versions & 1 rubygems