Changeset [1c6351fba6a3047ddadac7f1087b200816dca531] by Jan Hecking

January 21st, 2017 @ 03:55 PM

add support for conjunctions with bounding box

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/1c6351fba6a3047ddadac7f10...

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