Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
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 <tim.gates@iress.com>
  • Loading branch information
timgates42 committed Jul 19, 2022
1 parent f7f85a5 commit 25b872e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elasticsearch_dsl/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down
2 changes: 1 addition & 1 deletion examples/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion examples/parent_child.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25b872e

Please sign in to comment.