Changeset [eb1591d5fd90bd31d2887ca60246296556ce29e3] by Jan Hecking

January 21st, 2017 @ 04:23 PM

add support for conjunctions with bounding box (#347)

Allow with().in_bounding_box() restrictions to be added to conjunctions
such as any_of, e.g.

Model.search do
  any_of do
    with(:city, city)
    with(:location).in_bounding_box(se, nw)
  end
end

https://github.com/sunspot/sunspot/commit/eb1591d5fd90bd31d2887ca60...

Committed by Jan Hecking

  • M sunspot/lib/sunspot/query/bbox.rb
  • M sunspot/lib/sunspot/query/restriction.rb
  • M sunspot/spec/api/query/connectives_examples.rb
  • M sunspot/spec/integration/geospatial_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby