Skip to content

Commit

Permalink
Added reference to index creation on mongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhg committed Nov 15, 2011
1 parent ff3b20f commit 015594b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,13 @@ class River
end
```

Generate indexes on MongoDB:

```
rake db:mongoid:create_indexes
```


Before we manipulate the data mongoid_spacial handles is what we call points.

Points can be:
Expand Down Expand Up @@ -143,6 +150,14 @@ rivers = rivers.per(25).page(1)
rivers.reset! # resets the object to it is original state right after query.
```

Troubleshooting
-------------

**Mongo::OperationFailure: can't find special index: 2d**

Indexes need to be created. Execute command: <code>rake db:mongoid:create_indexes</code>


Thanks
-----------
* Thanks to Kristian Mandrup for creating the base of the gem and a few of the tests
Expand Down

0 comments on commit 015594b

Please sign in to comment.