Skip to content

Commit

Permalink
Spelling and grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
EtK2000 authored May 2, 2022
1 parent 477eb08 commit 1b6d085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ 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):
"""
Automatically construct the suggestion input and weight by taking all
possible permutation of Person's name as ``input`` and taking their
possible permutations of Person's name as ``input`` and taking their
popularity as ``weight``.
"""
self.suggest = {
Expand Down

0 comments on commit 1b6d085

Please sign in to comment.