Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
This repository was 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

Description

@JohnMerlino1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions