From a99516a0aaed0c93260c9516fc0ca254f52c8025 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 30 Apr 2024 09:56:11 +0100 Subject: [PATCH] Fixed example to use correct way to access search object (#1787) Fixes #1223 (cherry picked from commit a5880ef0aa6f57f98f05e1abb2e37ca05cf271f0) --- docs/search_dsl.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/search_dsl.rst b/docs/search_dsl.rst index ca11b442..2663fdf8 100644 --- a/docs/search_dsl.rst +++ b/docs/search_dsl.rst @@ -663,7 +663,7 @@ If you need to execute multiple searches at the same time you can use the responses = ms.execute() for response in responses: - print("Results for query %r." % response.search.query) + print("Results for query %r." % response._search.query) for hit in response: print(hit.title)