Skip to content

Commit 33deede

Browse files
committed
adding a few missed examples
1 parent 746574b commit 33deede

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/guide/connecting.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ client.options(
264264
265265
# You can persist the authenticated client to use
266266
# later or use for multiple API calls:
267-
auth_client = es.options(api_key="api_key")
267+
auth_client = client.options(api_key="api_key")
268268
for i in range(10):
269269
auth_client.index(
270270
index="example-index",

elasticsearch/_async/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ async def async_scan(
395395
.. code-block:: python
396396
397397
async_scan(
398-
es,
398+
client,
399399
query={"query": {"match": {"title": "python"}}},
400400
index="orders-*"
401401
)

elasticsearch/helpers/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def scan(
656656
Any additional keyword arguments will be passed to the initial
657657
:meth:`~elasticsearch.Elasticsearch.search` call::
658658
659-
scan(es,
659+
scan(client,
660660
query={"query": {"match": {"title": "python"}}},
661661
index="orders-*",
662662
doc_type="books"

0 commit comments

Comments
 (0)