change method name deprecated in xap 1.0

This commit is contained in:
dockes 2007-05-18 07:41:03 +00:00
parent 555e057516
commit 0048dce3c5
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

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