Commit a416144c418ad4ac86d4fc9670348b2fa4264f4b

Authored by Andrew Kane
1 parent 8ee45fb1

Version bump

  1 +## 0.3.0
  2 +
  3 +- Fixed reversed coordinates
  4 +- Added bounded by a box queries
  5 +- Expanded `or` queries
  6 +
1 ## 0.2.8 7 ## 0.2.8
2 8
3 - Added option to disable callbacks 9 - Added option to disable callbacks
@@ -353,6 +353,8 @@ product.similar(fields: ["name"]) @@ -353,6 +353,8 @@ product.similar(fields: ["name"])
353 353
354 ### Geospatial Searches 354 ### Geospatial Searches
355 355
  356 +**Note:** Before `0.3.0`, locations were indexed incorrectly. When upgrading, be sure to reindex immediately.
  357 +
356 ```ruby 358 ```ruby
357 class City < ActiveRecord::Base 359 class City < ActiveRecord::Base
358 searchkick locations: ["location"] 360 searchkick locations: ["location"]
@@ -369,7 +371,7 @@ Reindex and search with: @@ -369,7 +371,7 @@ Reindex and search with:
369 City.search "san", where: {location: {near: [37, -114], within: "100mi"}} # or 160km 371 City.search "san", where: {location: {near: [37, -114], within: "100mi"}} # or 160km
370 ``` 372 ```
371 373
372 -Bounded by a box [master] 374 +Bounded by a box
373 375
374 ```ruby 376 ```ruby
375 City.search "san", where: {location: {top_left: [38, -123], bottom_right: [37, -122]}} 377 City.search "san", where: {location: {top_left: [38, -123], bottom_right: [37, -122]}}
lib/searchkick/version.rb
1 module Searchkick 1 module Searchkick
2 - VERSION = "0.2.8" 2 + VERSION = "0.3.0"
3 end 3 end