X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/15bb2049062870fe167c450dc967e72f84462a41..d1a237e3f0504c2d2b7a3b357f7a114de1290350:/pokedex/lookup.py?ds=sidebyside diff --git a/pokedex/lookup.py b/pokedex/lookup.py index c5a22ab..28dd4b2 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -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()