|
a/src/rcldb/searchdata.cpp |
|
b/src/rcldb/searchdata.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: searchdata.cpp,v 1.6 2006-11-30 13:38:44 dockes Exp $ (C) 2006 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: searchdata.cpp,v 1.7 2006-12-19 12:11:21 dockes Exp $ (C) 2006 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
212 |
}
|
212 |
}
|
213 |
|
213 |
|
214 |
if (nostemexp) {
|
214 |
if (nostemexp) {
|
215 |
exp = list<string>(1, term1);
|
215 |
exp = list<string>(1, term1);
|
216 |
} else {
|
216 |
} else {
|
217 |
exp = m_db.stemExpand(m_stemlang, term1);
|
217 |
list<TermMatchEntry> l;
|
|
|
218 |
m_db.termMatch(Rcl::Db::ET_STEM, m_stemlang, term1, l);
|
|
|
219 |
for (list<TermMatchEntry>::const_iterator it = l.begin();
|
|
|
220 |
it != l.end(); it++) {
|
|
|
221 |
exp.push_back(it->term);
|
|
|
222 |
}
|
218 |
}
|
223 |
}
|
219 |
}
|
224 |
}
|
220 |
|
225 |
|
221 |
// Do distribution of string vectors: a,b c,d -> a,c a,d b,c b,d
|
226 |
// Do distribution of string vectors: a,b c,d -> a,c a,d b,c b,d
|
222 |
void multiply_groups(vector<vector<string> >::const_iterator vvit,
|
227 |
void multiply_groups(vector<vector<string> >::const_iterator vvit,
|