-
Notifications
You must be signed in to change notification settings - Fork 446
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
Fix Chinese Search Bug #245
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why so many minor and completely irrelevant changes to code style
add separator to search plugins
Commits have been reset. I am very sorry for the additional workload before. |
# Ignored samples with excessively long names | ||
if len(filename) > 150: | ||
continue | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for the modification is that an error was encountered while writing files on account of long filename. This is not relevant to the main work of this PR.
Additionally, in order to implement keyword search, the source file of mkdocs needs to be modified to use jieba for Chinese word segmentation. However, such modification is not in the repository code, and I want to know whether this solution is acceptable. Related changes can be found here. |
Description
As discussed in #138 , at the moment searching with full university name does not work.
Bug Reproduce
As shown in the following figures, NJUST, for example, was included in the dataset, but no corresponding results were found in the search box.
Solution Effect
As shown in the following figure, NJUST, including its multiple campuses, has been correctly displayed.
In addition, searching suggestions are provided while typing.