Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python neo4jrestclient中的Lucene查询构建?_Python_Rest_Neo4j_Lucene - Fatal编程技术网

Python neo4jrestclient中的Lucene查询构建?

Python neo4jrestclient中的Lucene查询构建?,python,rest,neo4j,lucene,Python,Rest,Neo4j,Lucene,我正在尝试遵循以下文档: 这个很好用 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('

我正在尝试遵循以下文档: 这个很好用

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存储库中升级到了最新版本。这是一个bug吗?

这是一个bug,我在这里归档:

这是一个bug,我在这里归档:

我不确定这是否是一个问题。无论如何,您可以尝试使用参数
通配符
,如:

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

告诉我它是否有效:-)

我不确定这是否是一个问题。无论如何,您可以尝试使用参数
通配符
,如:

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

告诉我它是否有效:-)

你能把原始的REST调用发送到网络上作为参考,这样我就可以看一看了吗?当然。如何捕获REST请求?@user890477您可以使用Wireshark之类的工具,也可以使用pdb跟踪neo4jrestclient中的调用,直到构建HTTP请求,并向我们展示这些。@PeterNeubauer几乎可以肯定是neo4j rest客户端或lucene-querybuilder。另一个选项是启用。您可以将原始rest调用发送到网上以供参考,以便我可以查看吗?当然可以。如何捕获REST请求?@user890477您可以使用Wireshark之类的工具,也可以使用pdb跟踪neo4jrestclient中的调用,直到构造HTTP请求为止,并向我们展示这些调用。@peterNubauer几乎可以肯定是neo4j REST client或lucene-querybuilder。另一个选项是启用。