Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix bug

Jakub Draganek3832a42a8e65
diff --git a/saleor/search/backends/newelastic.py b/saleor/search/backends/newelastic.py
index aa0da6f401..4eb9777429 100644
--- a/saleor/search/backends/newelastic.py
+++ b/saleor/search/backends/newelastic.py
@@ -14,7 +14,7 @@ def get_search_query(phrase):
.filter('term', is_published=True))
-def _execute_es_search(query):
+def _execute_es_search(search):
return [hit.meta.id for hit in search.execute()]