moped icon indicating copy to clipboard operation
moped copied to clipboard

no such command: 'text', bad cmd: '{ text: \"mongoid_container_contacts\", search: \"8044939\" }'

Open JohnMerlino1 opened this issue 9 years ago • 0 comments

I am trying to do a fulltext search. It was working for a while and now the following command is not working:

resp = ::Mongoid::Sessions.default.command(text: "mongoid_container_contacts", search: "8044939")

It fails with the following error:

The operation: #<Moped::Protocol::Command @length=112 @request_id=166 @response_to=0 @op_code=2004 @flags=[] @full_collection_name="core_development.$cmd" @skip=0 @limit=-1 @selector={:text=>"mongoid_container_contacts", :search=>"8044939"} @fields=nil> failed with error 59: "no such command: 'text', bad cmd: '{ text: "mongoid_container_contacts", search: "8044939" }'" See https://github.com/mongodb/mongo/blob/master/docs/errors.md for details about this error.

no such command: 'text', bad cmd: '{ text: "mongoid_container_contacts", search: "8044939" }'

Why is this error suddenly occurring and how can I resolve it?

JohnMerlino1 avatar Jul 14 '16 17:07 JohnMerlino1