experiment with xapian spell support (not ready yet) + take care of some static init issues showing up on the mac

This commit is contained in:
Jean-Francois Dockes
2011-05-10 10:15:15 +02:00
parent cb884a9cc4
commit 08a65f5cfc
4 changed files with 92 additions and 48 deletions
+7
View File
@@ -163,6 +163,13 @@ void SpellW::doExpand()
for (list<string>::const_iterator it = suggs.begin();
it != suggs.end(); it++)
res.entries.push_back(Rcl::TermMatchEntry(*it));
#ifdef TESTING_XAPIAN_SPELL
string rclsugg = rcldb->getSpellingSuggestion(expr);
if (!rclsugg.empty()) {
res.entries.push_back(Rcl::TermMatchEntry("Xapian spelling:"));
res.entries.push_back(Rcl::TermMatchEntry(rclsugg));
}
#endif // TESTING_XAPIAN_SPELL
}
#endif
}