-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitbook searching often misses references #387
Comments
Even simpler: If my book has the sentence:
I can search for "foo/bar" but not "bar". |
The (client-side) searching engine is based on lunr.js https://lunrjs.com. I didn't tweak any options in this library, and it seems there were certain problems with tokenizing (perhaps slash was not recognized as a word separator). I'll take a look at the lunr docs. |
Thanks! Should be fixed now. |
Hi @yihui, it seems that the search function does not support Chinese at all. Searching for Chinese characters returns nothing. Can you confirm this? |
You are right. It does not support CJK languages. |
@nicholaelaw @yihui there are plugins for many languages, but not Chinese. A great way to contribute would be to help with adding a Chinese language extension. |
Update: Ignore this post, the issue is with the gitbook search, not with bookdown. It seems this issue is cropping up again. Sample book: file is
Contents of
Now run Searching Contents of
Session info:
Bookdown version is 0.5. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I have noticed that the gitbook search often is unable to find obvious matches in text.
Here is a sample book:
Searching for "cent" or "Cent" finds nothing. Searching for "Linux/Cent" does find a match.
I rendered with:
Here is the
search_index.json
:Here is my session information:
The text was updated successfully, but these errors were encountered: