How to support Chinese Search Segmentation? #1084
-
For example, searching for "环境[space or other separators]部署" can be matched to "环境的离线部署". |
Beta Was this translation helpful? Give feedback.
Answered by
Timeless0911
May 15, 2024
Replies: 2 comments
-
The current local search is based on flexsearch. You can try to optimize the matching of fuzzy search in this file https://github.com/web-infra-dev/rspress/blob/75fbb8e11dbfba2127d3f0b28ac9a4cf6c725e88/packages/theme-default/src/components/Search/logic/providers/LocalProvider.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bp404
-
Got it. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current local search is based on flexsearch.
You can try to optimize the matching of fuzzy search in this file https://github.com/web-infra-dev/rspress/blob/75fbb8e11dbfba2127d3f0b28ac9a4cf6c725e88/packages/theme-default/src/components/Search/logic/providers/LocalProvider.ts