Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

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

Open
JohnMerlino1 opened this issue Jul 14, 2016 · 0 comments

Comments

@JohnMerlino1
Copy link

JohnMerlino1 commented Jul 14, 2016

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant