我正在使用 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 指定此查询?