When the word I'm looking for is the first word, or there's a space in front of it, it's ok.

But if the word is in the middle of a sentence, it cannot be found.

Whether this is a full-text retrieval of related issues?
Thanks!
The same problem in version: v0.25.1, I have just tried BookStack...
The same problem in version: v0.24.3, I use a docker
still the same problem in v26.4. hope it could get solved. thanks
you can use "成功" for search, maybe the word segmentation has the bug, hope fix it
Confirmed this issue still in v0.27.5
One of my team member is hesitating because of this. Would like to see it fixed.
Hope fix this issue soon.
Sorry about this issue. It essentially stems from my unfamiliarity with non-English text.
At the moment BookStack splits up page content, on certain characters such as spaces and some punctuation, into terms which are put in the database for indexing then a "Starts With" match of those are checked against on a normal search.
As @sosize has mentioned, you can wrap a search in quotes, at which point BookStack will perform a "contains" against the content directly instead of the above "Starts With". This is not the default simply due to performance. ("Starts With" searches can use indexes much more effectively than "Contains").
I'm not really sure how we could utilise the "Starts With" system for such characters. Perhaps the search should default to a "Contains" search if such characters are found in a term?
@ssddanbrown Can this be set as config control ?Select “Starts With” or “Contains” for search type.
More is hope full-text search.
Or how to quickly modify the code?
can i replace all the "startWith" with "contains",or how to modify the source code ,sorry ,i'm a noob
Hi,all the guys,I fixed this problem in v0.28.3.Just add a '%' in SearchService.php.
In detail.
in \app\Entities\SearchService.php,about line 196.
modify
$query->orWhere('term', 'like', $inputTerm . '%');
to
$query->orWhere('term', 'like', '%'.$inputTerm . '%');
Just try.
@ssddanbrown hi, can above fix be merge to the source?
after modify SearchService.php now I can search both chinese and english in text body.
Most helpful comment
Hi,all the guys,I fixed this problem in v0.28.3.Just add a '%' in SearchService.php.
In detail.
in \app\Entities\SearchService.php,about line 196.
modify
$query->orWhere('term', 'like', $inputTerm . '%');
to
$query->orWhere('term', 'like', '%'.$inputTerm . '%');
Just try.