Prefix lookup is now case-insensitive.

This commit is contained in:
Eevee 2009-10-11 00:39:52 -07:00
parent 9dba6867fa
commit 04a2e3fd3d

View file

@ -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()