2

我正在尝试遵循这些文档: 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 存储库中升级到了最新版本。这是一个错误吗?

4

2 回答 2

4

我不确定这是否是neo4j-rest-client上的问题而不是lucene-querybuilder。无论如何,您可以尝试使用如下参数wildcard

print userIndex.query(Q('username', "*", wildcard=True))[:]

告诉我它是否有效:-)

于 2012-06-04T18:02:14.520 回答
0

这是/曾经是一个错误,我在这里提交: https ://github.com/versae/neo4j-rest-client/issues/67

于 2012-06-04T17:05:57.710 回答