Open piacabrera opened 2 years ago
Hola! tengo una duda al crear un indice para buscar las palabras, me tira este error
OperationFailure: not authorized on control3 to execute command { createIndexes: "lyrics", indexes: [ { name: "lyrics_text", key: { lyrics: "text" } } ], lsid: { id: UUID("e38b70bb-50e6-4ebf-9730-fbc866d7c909") }, $db: "control3", $readPreference: { mode: "primary" } }, full error: {'ok': 0.0, 'errmsg': 'not authorized on control3 to execute command { createIndexes: "lyrics", indexes: [ { name: "lyrics_text", key: { lyrics: "text" } } ], lsid: { id: UUID("e38b70bb-50e6-4ebf-9730-fbc866d7c909") }, $db: "control3", $readPreference: { mode: "primary" } }', 'code': 13, 'codeName': 'Unauthorized'}
Que podre estar haciendo mal? Muchas gracias!!!
Hola!, ustedes no tienen que crear los índices. la db ya los tiene creados.
Hola! tengo una duda al crear un indice para buscar las palabras, me tira este error
OperationFailure: not authorized on control3 to execute command { createIndexes: "lyrics", indexes: [ { name: "lyrics_text", key: { lyrics: "text" } } ], lsid: { id: UUID("e38b70bb-50e6-4ebf-9730-fbc866d7c909") }, $db: "control3", $readPreference: { mode: "primary" } }, full error: {'ok': 0.0, 'errmsg': 'not authorized on control3 to execute command { createIndexes: "lyrics", indexes: [ { name: "lyrics_text", key: { lyrics: "text" } } ], lsid: { id: UUID("e38b70bb-50e6-4ebf-9730-fbc866d7c909") }, $db: "control3", $readPreference: { mode: "primary" } }', 'code': 13, 'codeName': 'Unauthorized'}
Que podre estar haciendo mal? Muchas gracias!!!