From ac6fe0c9ed5375a6614cd771a6af687182ff56fc Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Sun, 18 Nov 2012 11:37:41 -0500 Subject: [PATCH] Add note about creating Mongo indexes. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1285497b..fbc00dd9 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ Reverse geocoding is similar: reverse_geocoded_by :coordinates after_validation :reverse_geocode # auto-fetch address +Once you've set up your model you'll need to create the necessary spatial indices in your database: + + rake db:mongoid:create_indexes + Be sure to read _Latitude/Longitude Order_ in the _Notes on MongoDB_ section below on how to properly retrieve latitude/longitude coordinates from your objects. ### MongoMapper -- GitLab