diff --git a/CHANGELOG.md b/CHANGELOG.md index d039919..db86bf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.3.0 + +- Fixed reversed coordinates +- Added bounded by a box queries +- Expanded `or` queries + ## 0.2.8 - Added option to disable callbacks diff --git a/README.md b/README.md index fe14031..67dcf8f 100644 --- a/README.md +++ b/README.md @@ -353,6 +353,8 @@ product.similar(fields: ["name"]) ### Geospatial Searches +**Note:** Before `0.3.0`, locations were indexed incorrectly. When upgrading, be sure to reindex immediately. + ```ruby class City < ActiveRecord::Base searchkick locations: ["location"] @@ -369,7 +371,7 @@ Reindex and search with: City.search "san", where: {location: {near: [37, -114], within: "100mi"}} # or 160km ``` -Bounded by a box [master] +Bounded by a box ```ruby City.search "san", where: {location: {top_left: [38, -123], bottom_right: [37, -122]}} diff --git a/lib/searchkick/version.rb b/lib/searchkick/version.rb index fe41018..678666e 100644 --- a/lib/searchkick/version.rb +++ b/lib/searchkick/version.rb @@ -1,3 +1,3 @@ module Searchkick - VERSION = "0.2.8" + VERSION = "0.3.0" end -- libgit2 0.21.0