From 5e97002f28f43089e1cba69b8cb685c68b98ef01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 23 Oct 2015 15:21:28 +0200 Subject: [PATCH] Fix documentation for the query param of the scan helper Thanks apandita for the report! --- elasticsearch/helpers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/helpers/__init__.py b/elasticsearch/helpers/__init__.py index 3578b873..143894b3 100644 --- a/elasticsearch/helpers/__init__.py +++ b/elasticsearch/helpers/__init__.py @@ -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" )