I have several databases/collections with identical structure and index keys but different values.
Enabling sharding works for all but one database which gives me this:
mongos> db.runCommand({"shardCollection": "xxx_ar.relevancyScores", "key":
{source: 1, date: 1} })
{
"ok" : 0,
"errmsg" : "exception: invalid parameter: expected an object ()"
}
I have tried running the command in lowercase without any luck.