Commit dea4942c008961e1471304305515bf69671b73e5

Authored by will-r
1 parent 38bd3661

more readme restoration

Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
@@ -836,8 +836,6 @@ product.similar(fields: ["name"], where: {size: "12 oz"}) @@ -836,8 +836,6 @@ product.similar(fields: ["name"], where: {size: "12 oz"})
836 836
837 ### Geospatial Searches 837 ### Geospatial Searches
838 838
839 -If your data consists of point values, searchkick offers a useful shorthand:  
840 -  
841 ```ruby 839 ```ruby
842 class City < ActiveRecord::Base 840 class City < ActiveRecord::Base
843 searchkick locations: ["location"] 841 searchkick locations: ["location"]
@@ -848,9 +846,7 @@ class City &lt; ActiveRecord::Base @@ -848,9 +846,7 @@ class City &lt; ActiveRecord::Base
848 end 846 end
849 ``` 847 ```
850 848
851 -Elasticsearch supports a range of useful search types for geo_point data:  
852 -  
853 -Within a radius 849 +Reindex and search with:
854 850
855 ```ruby 851 ```ruby
856 City.search "san", where: {location: {near: {lat: 37, lon: -114}, within: "100mi"}} # or 160km 852 City.search "san", where: {location: {near: {lat: 37, lon: -114}, within: "100mi"}} # or 160km
@@ -882,7 +878,6 @@ Also supports [additional options](https://www.elastic.co/guide/en/elasticsearch @@ -882,7 +878,6 @@ Also supports [additional options](https://www.elastic.co/guide/en/elasticsearch
882 City.search "san", boost_by_distance: {field: :location, origin: {lat: 37, lon: -122}, function: :linear, scale: "30mi", decay: 0.5} 878 City.search "san", boost_by_distance: {field: :location, origin: {lat: 37, lon: -122}, function: :linear, scale: "30mi", decay: 0.5}
883 ``` 879 ```
884 880
885 -  
886 ### Geo Shapes 881 ### Geo Shapes
887 882
888 You can also pass through complex or varied shapes as GeoJSON objects. 883 You can also pass through complex or varied shapes as GeoJSON objects.