Commit a416144c418ad4ac86d4fc9670348b2fa4264f4b
1 parent
8ee45fb1
Exists in
master
and in
21 other branches
Version bump
Showing
3 changed files
with
10 additions
and
2 deletions
Show diff stats
CHANGELOG.md
README.md
@@ -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