jugyo/sunspot_mongoid — Issue #17: Can't use Model.search 
Author: parano
Created: 2011-12-30 07:36:16+00:00
State: open

I set up Sunspot follow this https://github.com/sunspot/sunspot document, and when i type Post.search { fulltext 'text' }, it gives me this error message:
```
Mongoid::Errors::InvalidFind: Calling Document#find with nil is invalid
```

when i change it to Model.solr_search or Sunspot.search(Post) , the ```.result``` always give me an empty array .

I've asked this question here http://stackoverflow.com/questions/8654329/how-to-make-sunspot-works-with-mongoid-rails-3 , but no one answers me . and my project source code was here https://github.com/sunspot/sunspot