这是我的收藏:
{
"offset" : 0,
"rows": [
{
"_id" : { "$oid" : "5199e109f456aab938b304de" },
"type" : "cluster",
"id" : "1",
"vertices_transformation" : [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, 1 ] ],
"vertices" : [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, 1 ] ],
"v_attributes" : [[0.5,0.8,1], [0.6,0.9,1], [0.44,0.8,0.7],[0,1,0]]
},
{
"_id" : { "$oid" : "5199d8f8f456aab938b304db" },
"type" : "model",
"id" : "modello1",
"name" : "MODELLO 1",
"description" : "1 modello di prova",
"clusters" : [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ],
"clusters_tree" : [ 1, 2, 3, [ 4, 5, 6, 7 ], [ 8, 9, 10, 11 ] ]
}
],
"total_rows" : 2,
"query" : { "type" : "cluster", "id" : 1 } ,
"millis" : 1
}
我想按类型过滤,然后按 id 过滤,这是我的查询:
http://xxxx/db/collections/?filter_type=cluster&filter_id=1
但是这个查询的结果是0行,但是如果只按类型查询,则成功返回该行。为什么我的查询不适用于 id?
在此先感谢您的帮助。