Skip to content

Commit 2371311

Browse files
dsanders11honzakral
authored andcommitted
Fix typos in docstrings (#1185)
1 parent 601f7e9 commit 2371311

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

elasticsearch_dsl/document.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get(cls, id, using=None, index=None, **kwargs):
170170
"""
171171
Retrieve a single document from elasticsearch using it's ``id``.
172172
173-
:arg id: ``id`` of the document to be retireved
173+
:arg id: ``id`` of the document to be retrieved
174174
:arg index: elasticsearch index to use, if the ``Document`` is
175175
associated with an index this can be omitted.
176176
:arg using: connection alias to use, defaults to ``'default'``
@@ -195,7 +195,7 @@ def mget(cls, docs, using=None, index=None, raise_on_error=True,
195195
Retrieve multiple document by their ``id``\s. Returns a list of instances
196196
in the same order as requested.
197197
198-
:arg docs: list of ``id``\s of the documents to be retireved or a list
198+
:arg docs: list of ``id``\s of the documents to be retrieved or a list
199199
of document specifications as per
200200
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html
201201
:arg index: elasticsearch index to use, if the ``Document`` is

elasticsearch_dsl/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def analyze(self, using=None, **kwargs):
318318

319319
def refresh(self, using=None, **kwargs):
320320
"""
321-
Preforms a refresh operation on the index.
321+
Performs a refresh operation on the index.
322322
323323
Any additional keyword arguments will be passed to
324324
``Elasticsearch.indices.refresh`` unchanged.
@@ -327,7 +327,7 @@ def refresh(self, using=None, **kwargs):
327327

328328
def flush(self, using=None, **kwargs):
329329
"""
330-
Preforms a flush operation on the index.
330+
Performs a flush operation on the index.
331331
332332
Any additional keyword arguments will be passed to
333333
``Elasticsearch.indices.flush`` unchanged.

0 commit comments

Comments
 (0)