我正在尝试遵循文档 http://readthedocs.org/docs/neo4j-rest-client/en/latest/indices.html
我希望索引查询返回一个节点,但它返回一个“Iterable:Node”:
db = GraphDatabase("http://localhost:7474/db/data")
playerIndex = db.nodes.indexes.get("index1")
playerNode = db.nodes.create(player_id = "Homer")
playerIndex.add("player_id", "Homer", playerNode)
print playerIndex["player_id"]["Homer"], "\n", playerNode
印刷:
<Neo4j Iterable: Node>
<Neo4j Node: http://localhost:7474/db/data/node/157>
如何获得 neo4jrestclient 索引查询结果以返回像第 2 行一样的节点?