{"issue":{"created_at":"2011-12-02T12:10:46Z","state":"open","updated_at":"2011-12-02T12:18:52Z","comments":2,"user":{"gravatar_id":"27a0811a9ca3c1ed3f41046159824c84","id":24801,"url":"https://api.github.com/users/christianhellsten","avatar_url":"https://secure.gravatar.com/avatar/27a0811a9ca3c1ed3f41046159824c84?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"christianhellsten"},"body":"This class:\r\n\r\n    class XXX\r\n      index :slug\r\n\r\n      # Must be included after Mongoid, Tire#index conflicts with Mongoid#index otherwise\r\n      include Tire::Model::Search\r\n      include Tire::Model::Callbacks\r\n\r\nwill not be searchable with Mongoid 2.3.4. The search method is implemented by Mongoid, so instead of performing a search through Tire it will return e.g.:\r\n\r\n    XXX.search('yyy')\r\n    => [:ids,\r\n     #<Mongoid::Criteria\r\n      selector: {:_id=>\"yyy\", :deleted_at=>nil},\r\n      options:  {},\r\n      class:    XXX,\r\n      embedded: false>\r\n","assignee":null,"number":157,"id":2426572,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Conflicts with Mongoid search/index methods","closed_at":null,"html_url":"https://github.com/karmi/tire/issues/157","url":"https://api.github.com/repos/karmi/tire/issues/157","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T12:18:52Z","updated_at":"2011-12-02T12:18:52Z","user":{"gravatar_id":"27a0811a9ca3c1ed3f41046159824c84","id":24801,"url":"https://api.github.com/users/christianhellsten","avatar_url":"https://secure.gravatar.com/avatar/27a0811a9ca3c1ed3f41046159824c84?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"christianhellsten"},"body":"OK, that explains it. I was following the README instructions, which still recommend using Article.search, not Article.tire.search:\r\n    Article.search 'love'","id":2989376,"url":"https://api.github.com/repos/karmi/tire/issues/comments/2989376"}}