【发布时间】:2016-02-09 05:44:23
【问题描述】:
我正在使用 Elasticsearch 2.2 和相应的 python api。我可以像这样查询
res = es.search(index="test-index", body={"query": {"match_all": {}}})
这很好。现在我们还可以在查询中指定一些元参数,如
所示所以基本上,我想执行一个类似的查询
url = 'http://localhost:9200/tesIndex/test/_search?from=%d&q=FieldA=ABC or FieldA=PQR'%start
result = requests.get(url).json()
我将如何使用 elasticsearch python api 指定此查询?
【问题讨论】: