我在 CosmicMind/Graph 数据库中搜索实体时遇到了一些问题。这是代码,这很容易解释
//User 1
//data: 14 Febbraio 2017
//ora : 15:40
//name: Paolo
//User 2
//data: 14 Febbraio 2017
//ora : 12:40
//name: Ernesto
//User 3
//data: 13 Febbraio 2017
//ora : 16:40
//name: Paolo
/*Search Parameters*/
//dataSearch = 13 Febbraio 2017
//oraSearch = 16:40
//nameSearch = Paolo
var search = Search<Entity>(graph: graph).for(types: "Users").where(properties: (key: "data", value: dataSearch)).where(properties: (key:"ora", value: oraSearch)).where(properties: (key:"name", value: nameSearch))
//returns [User1, User3]
我期待搜索 [User3],因为搜索参数与该实体一致,但是搜索返回 [User1, User3],就像忽略 dataSearch 和 oraSearch 参数,并且只有最后一个搜索参数 nameSearch 正在用于搜索。我究竟做错了什么?