【发布时间】:2012-06-01 22:01:26
【问题描述】:
我正在尝试关注这些文档: 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 存储库中升级到了最新版本。这是一个错误吗?
【问题讨论】:
-
您能否发布原始的 REST 调用以供参考,以便我看一下?
-
当然。如何捕获 REST 请求?
-
@user890477 您可以使用 Wireshark 之类的工具,也可以使用 pdb 跟踪 neo4jrestclient 中的调用,直到构建 HTTP 请求,然后向我们展示。
-
@PeterNeubauer 几乎可以肯定是 neo4j-rest-client 或 lucene-querybuilder。
-
另一个选项是启用
DEBUGmode。