diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index f675110b..33e8c420 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.106 2007-02-14 10:09:31 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.107 2007-05-18 07:41:03 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -1531,7 +1531,7 @@ bool Db::stemDiffers(const string& lang, const string& word, const string& base) { Xapian::Stem stemmer(lang); - if (!stemmer.stem_word(word).compare(stemmer.stem_word(base))) { + if (!stemmer(word).compare(stemmer(base))) { LOGDEB2(("Rcl::Db::stemDiffers: same for %s and %s\n", word.c_str(), base.c_str())); return false; diff --git a/src/rcldb/stemdb.cpp b/src/rcldb/stemdb.cpp index ad5aa92c..f5874fd8 100644 --- a/src/rcldb/stemdb.cpp +++ b/src/rcldb/stemdb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: stemdb.cpp,v 1.7 2007-01-19 15:19:51 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: stemdb.cpp,v 1.8 2007-05-18 07:41:03 dockes Exp $ (C) 2005 J.F.Dockes"; #endif /** @@ -115,7 +115,7 @@ bool createDb(Xapian::Database& xdb, const string& dbdir, const string& lang) // (*it).c_str(), *sit)); continue; } - string stem = stemmer.stem_word(*it); + string stem = stemmer(*it); //cerr << "word " << *it << " stem " << stem << endl; if (stem == *it) { ++stemconst; @@ -226,7 +226,7 @@ bool stemExpand(const std::string& dbdir, { try { Xapian::Stem stemmer(lang); - string stem = stemmer.stem_word(term); + string stem = stemmer(term); LOGDEB(("stemExpand: [%s] stem-> [%s]\n", term.c_str(), stem.c_str())); // Open stem database