Closed marccantwell closed 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?
This gem requires the aggregation framework which is only available in the development version of mongodb (2.1).
Thanks @cloke! That's correct. And 2.2 is out now too. Will assume this solved the issue.
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?