--- indexer_xapian.py 2009-09-15 21:25:58.000000000 -0700 +++ indexer_xapian-new.py 2010-03-07 20:42:33.000000000 -0800 @@ -94,7 +94,7 @@ word = match.group(0) if self.is_stopword(word): continue - term = stemmer(word) + term = stemmer(word.lower()) doc.add_posting(term, match.start(0)) if docid: database.replace_document(docid, doc) @@ -117,7 +117,7 @@ for term in [word.upper() for word in wordlist if self.minlength <= len(word) <= self.maxlength]: if not self.is_stopword(term): - terms.append(stemmer(term)) + terms.append(stemmer(term.lower())) query = xapian.Query(xapian.Query.OP_AND, terms) enquire.set_query(query)