Skip to content

Commit 9dc843e

Browse files
timgates42miguelgrinberg
authored andcommitted
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]>
1 parent 619daa1 commit 9dc843e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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/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)