diff roundup/backends/indexer_xapian.py @ 3932:7518a8ec1d55

Update Xapian to use latest stemmer API (since version 0.9.0 and now enforced in 1.0.0+)
author Richard Jones <richard@users.sourceforge.net>
date Thu, 25 Oct 2007 07:02:42 +0000
parents c7363442cdbb
children 2ff6f39aa391
line wrap: on
line diff
--- a/roundup/backends/indexer_xapian.py	Thu Oct 25 05:24:50 2007 +0000
+++ b/roundup/backends/indexer_xapian.py	Thu Oct 25 07:02:42 2007 +0000
@@ -1,4 +1,4 @@
-#$Id: indexer_xapian.py,v 1.5 2007-09-05 18:46:39 jpend Exp $
+#$Id: indexer_xapian.py,v 1.6 2007-10-25 07:02:42 richard Exp $
 ''' This implements the full-text indexer using the Xapian indexer.
 '''
 import re, os
@@ -113,7 +113,7 @@
         stemmer = xapian.Stem("english")
         terms = []
         for term in [word.upper() for word in wordlist if 26 > len(word) > 2]:
-            terms.append(stemmer.stem_word(term.upper()))
+            terms.append(stemmer(term.upper()))
         query = xapian.Query(xapian.Query.OP_AND, terms)
 
         enquire.set_query(query)

Roundup Issue Tracker: http://roundup-tracker.org/