Suggestion issue fixed (#4175) - #4202
esakkiraja100116 wants to merge 10 commits into
Conversation
|
@esakkiraja100116 Thanks for the error analysis. |
|
Because the words between the \ cannot be found either. |
|
Thanks for offering this @esakkiraja100116. You're on the right lines but the PR code does not fix the issue at play here.
Yeah, the existing behaviour is intentional. Normal search terms are prefix-only match (at a term-level), not a full partial contains match. This is so database indexes can be used for most search operations. Some other things upon the above:
@esakkiraja100116 Finding |
As @ssddanbrown said we can able to filter the word using double quote like But my concern is like something below
|
|
Thanks for updating the PR @esakkiraja100116 but I think this is still not working as intended, now adding more issues. It now seems to be doubling the whole search term whenever it contains a Ultimately, I think the logic simply requires |
|
|
@ssddanbrown Have you checked my recent commit ?
|
|
Thanks for updating the code again @esakkiraja100116. |
|
Really happy to contribute with Book Stack and thanks for your guidance @ssddanbrown 🙏 |

\we need to give four\\\. Then only it will consider like only one.Came back to the code
$inputTerm = ($inputTerm == "\\") ? str_repeat($inputTerm, 2) : $inputTerm;Added condition for that backslash, then it worked.
stackand the actual word wasBookstack. So I modified that query in PHP.$query->orWhere('term', 'like', $inputTerm. '%');to$query->orWhere('term', 'like', "%$inputTerm%");Finally, the issues are resolved 🎉