mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Prefix lookup is now case-insensitive.
This commit is contained in:
parent
9dba6867fa
commit
04a2e3fd3d
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ def prefix_lookup(prefix, session=None, indices=None):
|
|||
else:
|
||||
index, speller = open_index()
|
||||
|
||||
query = whoosh.query.Prefix(u'name', prefix)
|
||||
query = whoosh.query.Prefix(u'name', prefix.lower())
|
||||
|
||||
searcher = index.searcher()
|
||||
searcher.weighting = LanguageWeighting()
|
||||
|
|
Loading…
Reference in a new issue