diff --git a/elasticsearch_dsl/query.py b/elasticsearch_dsl/query.py index e45955ca..f0ec5bc3 100644 --- a/elasticsearch_dsl/query.py +++ b/elasticsearch_dsl/query.py @@ -309,7 +309,7 @@ class TopChildren(Query): _param_defs = {"query": {"type": "query"}} -# compount span queries +# compound span queries class SpanFirst(Query): name = "span_first" _param_defs = {"match": {"type": "query"}} diff --git a/examples/async/completion.py b/examples/async/completion.py index 96d60724..4f159b7b 100644 --- a/examples/async/completion.py +++ b/examples/async/completion.py @@ -54,7 +54,7 @@ class Person(AsyncDocument): name = Text(fields={"keyword": Keyword()}) popularity = Long() - # copletion field with a custom analyzer + # completion field with a custom analyzer suggest = Completion(analyzer=ascii_fold) def clean(self): diff --git a/examples/async/parent_child.py b/examples/async/parent_child.py index 4ee61d4a..822ce86e 100644 --- a/examples/async/parent_child.py +++ b/examples/async/parent_child.py @@ -190,7 +190,7 @@ def search(cls, **kwargs): async def get_question(self): # cache question in self.meta - # any attributes set on self would be interpretted as fields + # any attributes set on self would be interpreted as fields if "question" not in self.meta: self.meta.question = await Question.get( id=self.question_answer.parent, index=self.meta.index diff --git a/examples/completion.py b/examples/completion.py index 4e68ce0c..4da648df 100644 --- a/examples/completion.py +++ b/examples/completion.py @@ -53,7 +53,7 @@ class Person(Document): name = Text(fields={"keyword": Keyword()}) popularity = Long() - # copletion field with a custom analyzer + # completion field with a custom analyzer suggest = Completion(analyzer=ascii_fold) def clean(self): diff --git a/examples/parent_child.py b/examples/parent_child.py index 3d0e369c..a4efdb3e 100644 --- a/examples/parent_child.py +++ b/examples/parent_child.py @@ -189,7 +189,7 @@ def search(cls, **kwargs): def get_question(self): # cache question in self.meta - # any attributes set on self would be interpretted as fields + # any attributes set on self would be interpreted as fields if "question" not in self.meta: self.meta.question = Question.get( id=self.question_answer.parent, index=self.meta.index