change method name deprecated in xap 1.0
This commit is contained in:
parent
555e057516
commit
0048dce3c5
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#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
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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)
|
const string& base)
|
||||||
{
|
{
|
||||||
Xapian::Stem stemmer(lang);
|
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",
|
LOGDEB2(("Rcl::Db::stemDiffers: same for %s and %s\n",
|
||||||
word.c_str(), base.c_str()));
|
word.c_str(), base.c_str()));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,7 +115,7 @@ bool createDb(Xapian::Database& xdb, const string& dbdir, const string& lang)
|
|||||||
// (*it).c_str(), *sit));
|
// (*it).c_str(), *sit));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
string stem = stemmer.stem_word(*it);
|
string stem = stemmer(*it);
|
||||||
//cerr << "word " << *it << " stem " << stem << endl;
|
//cerr << "word " << *it << " stem " << stem << endl;
|
||||||
if (stem == *it) {
|
if (stem == *it) {
|
||||||
++stemconst;
|
++stemconst;
|
||||||
@ -226,7 +226,7 @@ bool stemExpand(const std::string& dbdir,
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
Xapian::Stem stemmer(lang);
|
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()));
|
LOGDEB(("stemExpand: [%s] stem-> [%s]\n", term.c_str(), stem.c_str()));
|
||||||
|
|
||||||
// Open stem database
|
// Open stem database
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user