ensure that recoll configured with indexStripChars=1 runs as compiled with -DRCL_INDEX_STRIPCHARS
This commit is contained in:
parent
48e9a4f901
commit
e22b347767
17 changed files with 425 additions and 260 deletions
|
@ -197,10 +197,14 @@ void QtGuiResListPager::suggest(const vector<string>uterms,
|
|||
// If the term is in the index, we don't suggest alternatives.
|
||||
// Actually, we may want to check the frequencies and propose something
|
||||
// anyway if a possible variation is much more common (as google does)
|
||||
if (aspell->check(*rcldb, *uit, reason))
|
||||
#warning need to take case and diacs sensibility into account somehow
|
||||
// Maybe use the xapian index instead ? How to retrieve the sensitivity flags ?
|
||||
if (0) {
|
||||
if (aspell->check(*uit, reason))
|
||||
continue;
|
||||
else if (!reason.empty())
|
||||
return;
|
||||
}
|
||||
if (!aspell->suggest(*rcldb, *uit, asuggs, reason)) {
|
||||
LOGERR(("QtGuiResListPager::suggest: aspell failed: %s\n",
|
||||
reason.c_str()));
|
||||
|
@ -336,6 +340,7 @@ ResList::~ResList()
|
|||
QT_TR_NOOP("Open"),
|
||||
QT_TR_NOOP("(show query)"),
|
||||
QT_TR_NOOP("<p><i>Alternate spellings (accents suppressed): </i>"),
|
||||
QT_TR_NOOP("<p><i>Alternate spellings: </i>"),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue