mongos> db.analyze_result.update({ fileId: "8eabe793f2f24846a2c566f1cbc4d30d", keyword: "豹米空气净化大师", marketName: "360手机助手", displayName: "豹米空气净化大师", pageUrl: "http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师", downloadUrl: "http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk", md5: "d17a9303e2649653b71c1c8a77343dcd", realName: "豹米空气净化大师", version: "2.3.2" },{ $set: { publishDate: "2015-07-28", downloads: "1337", thumbPrint: "1005723193FBEE3F7EF38AE95896FF43", matchResult: "TRUE", updateDate: 1443168730167 } }, true, true ); WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0, "writeError" : { "code" : 61, "errmsg" : "upsert { q: { fileId: \"8eabe793f2f24846a2c566f1cbc4d30d\", keyword: \"豹米空气净化大师\", marketName: \"360手机助手\", displayName: \"豹米空气净化大师\", pageUrl: \"http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师\", downloadUrl: \"http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk\", md5: \"d17a9303e2649653b71c1c8a77343dcd\", realName: \"豹米空气净化大师\", version: \"2.3.2\" }, u: { $set: { publishDate: \"2015-07-28\", downloads: \"1337\", thumbPrint: \"1005723193FBEE3F7EF38AE95896FF43\", matchResult: \"TRUE\", updateDate: 1443168730167.0 } }, multi: true, upsert: true } does not contain shard key for pattern { _id: 1.0 }" } }) mongos> db.analyze_result.update({ fileId: "8eabe793f2f24846a2c566f1cbc4d30d", keyword: "豹米空气净化大师", marketName: "360手机助手", displayName: "豹米空气净化大师", pageUrl: "http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师", downloadUrl: "http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk", md5: "d17a9303e2649653b71c1c8a77343dcd", realName: "豹米空气净化大师", version: "2.3.2" },{ $set: { publishDate: "2015-07-28", downloads: "1337", thumbPrint: "1005723193FBEE3F7EF38AE95896FF43", matchResult: "TRUE", updateDate: 1443168730167 } }, true, false ); WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0, "writeError" : { "code" : 61, "errmsg" : "upsert { q: { fileId: \"8eabe793f2f24846a2c566f1cbc4d30d\", keyword: \"豹米空气净化大师\", marketName: \"360手机助手\", displayName: \"豹米空气净化大师\", pageUrl: \"http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师\", downloadUrl: \"http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk\", md5: \"d17a9303e2649653b71c1c8a77343dcd\", realName: \"豹米空气净化大师\", version: \"2.3.2\" }, u: { $set: { publishDate: \"2015-07-28\", downloads: \"1337\", thumbPrint: \"1005723193FBEE3F7EF38AE95896FF43\", matchResult: \"TRUE\", updateDate: 1443168730167.0 } }, multi: false, upsert: true } does not contain shard key for pattern { _id: 1.0 }" } }) mongos> db.analyze_result.update({ fileId: "8eabe793f2f24846a2c566f1cbc4d30d", keyword: "豹米空气净化大师", marketName: "360手机助手", displayName: "豹米空气净化大师", pageUrl: "http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师", downloadUrl: "http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk", md5: "d17a9303e2649653b71c1c8a77343dcd", realName: "豹米空气净化大师", version: "2.3.2" },{ $set: { publishDate: "2015-07-28", downloads: "1337", thumbPrint: "1005723193FBEE3F7EF38AE95896FF43", matchResult: "TRUE", updateDate: 1443168730167 } }, false, true ); WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0 }) mongos> db.analyze_result.update({ fileId: "8eabe793f2f24846a2c566f1cbc4d30d", keyword: "豹米空气净化大师", marketName: "360手机助手", displayName: "豹米空气净化大师", pageUrl: "http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师", downloadUrl: "http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk", md5: "d17a9303e2649653b71c1c8a77343dcd", realName: "豹米空气净化大师", version: "2.3.2" },{ $set: { publishDate: "2015-07-28", downloads: "1337", thumbPrint: "1005723193FBEE3F7EF38AE95896FF43", matchResult: "TRUE", updateDate: 1443168730167 } }, false, false ); WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0, "writeError" : { "code" : 61, "errmsg" : "update { q: { fileId: \"8eabe793f2f24846a2c566f1cbc4d30d\", keyword: \"豹米空气净化大师\", marketName: \"360手机助手\", displayName: \"豹米空气净化大师\", pageUrl: \"http://zhushou.360.cn/detail/index/soft_id/3015603?recrefer=SE_D_豹米空气净化大师\", downloadUrl: \"http://shouji.360tpcdn.com/150728/d17a9303e2649653b71c1c8a77343dcd/com.cmair_203020003.apk\", md5: \"d17a9303e2649653b71c1c8a77343dcd\", realName: \"豹米空气净化大师\", version: \"2.3.2\" }, u: { $set: { publishDate: \"2015-07-28\", downloads: \"1337\", thumbPrint: \"1005723193FBEE3F7EF38AE95896FF43\", matchResult: \"TRUE\", updateDate: 1443168730167.0 } }, multi: false, upsert: false } does not contain _id or shard key for pattern { _id: 1.0 }" } })