You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
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?
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?