Fix documentation for the query param of the scan helper

Thanks apandita for the report!
This commit is contained in:
Honza Král
2015-10-23 15:21:28 +02:00
parent 9d21d1686d
commit 5e97002f28
+1 -1
View File
@@ -259,7 +259,7 @@ def scan(client, query=None, scroll='5m', raise_on_error=True, preserve_order=Fa
:meth:`~elasticsearch.Elasticsearch.search` call::
scan(es,
query={"match": {"title": "python"}},
query={"query": {"match": {"title": "python"}}},
index="orders-*",
doc_type="books"
)