Lucene query building in neo4jrestclient?



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

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

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

并告诉我它是否有效:-)

这是一个

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

最新更新