Fix documentation for the query param of the scan helper
Thanks apandita for the report!
This commit is contained in:
@@ -259,7 +259,7 @@ def scan(client, query=None, scroll='5m', raise_on_error=True, preserve_order=Fa
|
|||||||
:meth:`~elasticsearch.Elasticsearch.search` call::
|
:meth:`~elasticsearch.Elasticsearch.search` call::
|
||||||
|
|
||||||
scan(es,
|
scan(es,
|
||||||
query={"match": {"title": "python"}},
|
query={"query": {"match": {"title": "python"}}},
|
||||||
index="orders-*",
|
index="orders-*",
|
||||||
doc_type="books"
|
doc_type="books"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user