diff --git a/elasticsearch_dsl/query.py b/elasticsearch_dsl/query.py index 04346539f..8080b41fa 100644 --- a/elasticsearch_dsl/query.py +++ b/elasticsearch_dsl/query.py @@ -304,7 +304,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/completion.py b/examples/completion.py index 8d910f1a2..7a8c7f9a5 100644 --- a/examples/completion.py +++ b/examples/completion.py @@ -52,7 +52,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 df832d650..cf8f724cc 100644 --- a/examples/parent_child.py +++ b/examples/parent_child.py @@ -189,7 +189,7 @@ def search(cls, **kwargs): @property def 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