christopher-fuller / mongodb_fulltext_search

A gem that adds fulltext search capability to Mongoid or MongoMapper documents. The MongoDB aggregation framework is utilized to perform searches quickly and efficiently.
MIT License
5 stars 3 forks source link

Mongo::OperationFailure #1

Closed marccantwell closed 12 years ago

marccantwell commented 12 years ago

Mongo::OperationFailure (Database command 'aggregate' failed: (errmsg: 'no such cmd: aggregate'; bad cmd: '{"aggregate"=>"fulltext_search_index_documents_0", "pipeline"=>[{"$match"=>{"$and"=>[{"counts.word"=>"gig"}]}}, {"$unwind"=>"$counts"}, {"$match"=>{"$or"=>[{"counts.word"=>"gig"}]}}, {"$sort"=>{"source"=>1}}, {"$group"=>{"_id"=>{"source"=>1}, "score"=>{"$sum"=>"$counts.count"}}}, {"$sort"=>{"score"=>-1}}, {"$limit"=>20}, {"$project"=>{"score"=>1}}]}'; ok: '0.0').): app/controllers/documents_controller.rb:35:in `search'

Any thoughts? Is this a configuration issue or an indexing issue?

cloke commented 12 years ago

This gem requires the aggregation framework which is only available in the development version of mongodb (2.1).

christopher-fuller commented 12 years ago

Thanks @cloke! That's correct. And 2.2 is out now too. Will assume this solved the issue.