Enable searching from the middle of the word?
Closed this issue · 3 comments
yudongqiu commented
Reason: For technical terms, people may not remember the full name, but only parts. Searching parts in the middle of a long string does not show result.
Screenshots:
- search full term or prefix works:
https://gabrielcsapo.github.io/docusaurus-plugin-search-local/search/?q=docsRouteBasePath
- Search part term does not show any result:
https://gabrielcsapo.github.io/docusaurus-plugin-search-local/search/?q=RouteBasePath
Just for comparison, the algolia search engine seems to support such use case:
https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-pages#mdxPageComponent
Ancient-Dragon commented
@gabrielcsapo / @lbdm44 Do you know if you're planning to implement this? Would be really beneficial, thanks!
gabrielcsapo commented
Looking into a fix now @Ancient-Dragon
gabrielcsapo commented
I created a PR for the fix. will update when we have a published version.