Skip to content

Commit bc54474

Browse files
docs: Fix a few typos (#1615) (#1804)
* docs: Fix a few typos There are small typos in: - elasticsearch_dsl/query.py - examples/completion.py - examples/parent_child.py Fixes: - Should read `interpreted` rather than `interpretted`. - Should read `completion` rather than `copletion`. - Should read `compound` rather than `compount`. Signed-off-by: Tim Gates <[email protected]> * fix async examples --------- Signed-off-by: Tim Gates <[email protected]> Co-authored-by: Miguel Grinberg <[email protected]> (cherry picked from commit c44960d) Co-authored-by: Tim Gates <[email protected]>
1 parent bf36efa commit bc54474

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

elasticsearch_dsl/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class TopChildren(Query):
309309
_param_defs = {"query": {"type": "query"}}
310310

311311

312-
# compount span queries
312+
# compound span queries
313313
class SpanFirst(Query):
314314
name = "span_first"
315315
_param_defs = {"match": {"type": "query"}}

examples/async/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Person(AsyncDocument):
5454
name = Text(fields={"keyword": Keyword()})
5555
popularity = Long()
5656

57-
# copletion field with a custom analyzer
57+
# completion field with a custom analyzer
5858
suggest = Completion(analyzer=ascii_fold)
5959

6060
def clean(self):

examples/async/parent_child.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def search(cls, **kwargs):
190190

191191
async def get_question(self):
192192
# cache question in self.meta
193-
# any attributes set on self would be interpretted as fields
193+
# any attributes set on self would be interpreted as fields
194194
if "question" not in self.meta:
195195
self.meta.question = await Question.get(
196196
id=self.question_answer.parent, index=self.meta.index

examples/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Person(Document):
5353
name = Text(fields={"keyword": Keyword()})
5454
popularity = Long()
5555

56-
# copletion field with a custom analyzer
56+
# completion field with a custom analyzer
5757
suggest = Completion(analyzer=ascii_fold)
5858

5959
def clean(self):

examples/parent_child.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def search(cls, **kwargs):
189189

190190
def get_question(self):
191191
# cache question in self.meta
192-
# any attributes set on self would be interpretted as fields
192+
# any attributes set on self would be interpreted as fields
193193
if "question" not in self.meta:
194194
self.meta.question = Question.get(
195195
id=self.question_answer.parent, index=self.meta.index

0 commit comments

Comments
 (0)