|
a/src/query/plaintorich.cpp |
|
b/src/query/plaintorich.cpp |
|
... |
|
... |
89 |
// Accept word and its position. If word is search term, add
|
89 |
// Accept word and its position. If word is search term, add
|
90 |
// highlight zone definition. If word is part of search group
|
90 |
// highlight zone definition. If word is part of search group
|
91 |
// (phrase or near), update positions list.
|
91 |
// (phrase or near), update positions list.
|
92 |
virtual bool takeword(const std::string& term, int pos, int bts, int bte) {
|
92 |
virtual bool takeword(const std::string& term, int pos, int bts, int bte) {
|
93 |
string dumb;
|
93 |
string dumb;
|
94 |
if (!unacmaybefold(term, dumb, "UTF-8", true)) {
|
94 |
if (!unacmaybefold(term, dumb, "UTF-8", UNACOP_UNACFOLD)) {
|
95 |
LOGINFO(("PlainToRich::splitter::takeword: unac failed for [%s]\n",
|
95 |
LOGINFO(("PlainToRich::splitter::takeword: unac failed for [%s]\n",
|
96 |
term.c_str()));
|
96 |
term.c_str()));
|
97 |
return true;
|
97 |
return true;
|
98 |
}
|
98 |
}
|
99 |
//LOGDEB2(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(),
|
99 |
//LOGDEB2(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(),
|