我正在尝试关注这些文档: http://readthedocs.org/docs/neo4j-rest-client/en/latest/indices.html 这很好用
from neo4jrestclient.client import GraphDatabase, Q
db = GraphDatabase("http://localhost:7474/db/data")
userIndex = db.nodes.indexes.get("index2")
print userIndex.query('username', "*")[:]
根据文档,这也应该有效,但不是。
print userIndex.query(Q('username', "*"))[:]
我已升级到pip存储库中的最新版本。这是一个错误吗?
答案 0 :(得分:4)
我不确定这是neo4j-rest-client上的问题,而不是lucene-querybuilder。无论如何,您可以尝试使用参数wildcard
,如:
print userIndex.query(Q('username', "*", wildcard=True))[:]
告诉我它是否有效: - )
答案 1 :(得分:0)
这是/是一个错误,我在这里提交: https://github.com/versae/neo4j-rest-client/issues/67