projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Require docutils.
[zzz-pokedex.git]
/
pokedex
/
lookup.py
diff --git
a/pokedex/lookup.py
b/pokedex/lookup.py
index
c5a22ab
..
28dd4b2
100644
(file)
--- 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()