mirror of https://github.com/kiwix/libkiwix.git
+ Fix unstable fulltext library search
This commit is contained in:
parent
517a02b814
commit
bc161034c1
|
@ -512,7 +512,8 @@ namespace kiwix {
|
||||||
if (ok == true && !publisher.empty() && itr->publisher != publisher)
|
if (ok == true && !publisher.empty() && itr->publisher != publisher)
|
||||||
ok = false;
|
ok = false;
|
||||||
|
|
||||||
if ((ok == true && !search.empty()) && !(matchRegex(itr->title, search) || matchRegex(itr->description, search)))
|
if ((ok == true && !search.empty()) && !(matchRegex(itr->title, "\\Q" + search + "\\E") ||
|
||||||
|
matchRegex(itr->description, "\\Q" + search + "\\E")))
|
||||||
ok = false;
|
ok = false;
|
||||||
|
|
||||||
if (ok == true) {
|
if (ok == true) {
|
||||||
|
|
Loading…
Reference in New Issue