projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29a02ab
)
Prefix lookup is now case-insensitive.
author
Eevee
<git@veekun.com>
Sun, 11 Oct 2009 07:39:52 +0000
(
00:39
-0700)
committer
Eevee
<git@veekun.com>
Sun, 11 Oct 2009 07:39:52 +0000
(
00:39
-0700)
pokedex/lookup.py
patch
|
blob
|
history
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()
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()
searcher = index.searcher()
searcher.weighting = LanguageWeighting()