Skip to content
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

feature: Full Text Search #26

Open
RayBenefield opened this issue Jan 2, 2022 · 5 comments
Open

feature: Full Text Search #26

RayBenefield opened this issue Jan 2, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@RayBenefield
Copy link

Was hoping to add a full text search using vuepress-plugin-fulltext-search, however I realized that this theme does not use the typical SearchBox. Could full text search be an upgrade in the future?

If not, would there be an easy way to replace the current SearchPage in the layout?

@Zhengqbbb
Copy link
Contributor

Consider adding features vuepress2 official plugin - docSearch

Of course, I have tried adding this plugin, but I am also encountering bugs. This problem may originate from the plugin, it has been rendered repeatedly, and I submit an issue.

@Renovamen Renovamen added the enhancement New feature or request label Jan 24, 2022
@dan-r95
Copy link

dan-r95 commented Jan 25, 2022

the problem here is that it can only be used for open source projects.
@RayBenefield did u succeed with upgrading the repository to vuepress 2? I could not figure out how actually replace the SearchBox in the code.

@Renovamen
Copy link
Owner

Hi, sorry for the late reply. I just noticed that vuepress-plugin-fulltext-search isn't working with VuePress 2 as for now, so I can do nothing with theme v2.x. I'll try to support it after it being compatible with Vuepres 2.

I don't plan to add any new features to theme v0.x any more (but PRs are welcome). But if you want to re-write and replace the original SearchPage component, maybe this issue would be helpful. You can also eject and modify the theme.

@Zhengqbbb
Copy link
Contributor

Zhengqbbb commented Mar 11, 2022

Of course, I have tried adding this plugin, but I am also encountering bugs. This problem may originate from the plugin, it has been rendered repeatedly, and I submit an vuepress-next/issues/607.

@Renovamen I see that you have used the docsearch plugin in the latest version(2.0.0-alpha.17). If you use the keybord to jump to other page from the home page, the pop-up window will not be canceled.

ps: At that time, I also found that it was normal for to use the mouse to pop up the pop-up window to search, so what I did at that time was to css hide the keyboard icon 😂🤣

screen-capture-_1_.mp4

@Renovamen
Copy link
Owner

Renovamen commented Mar 11, 2022

I see, you mean when using ⌘ + K shortcut to call out the docsearch component and navigating to another page, the docsearch component would not disappear automatically after router changing. I didn't notice that, it should be bug in plugin-docsearch, thank you for pointing it out!

I see that you have used the docsearch plugin in the latest version(2.0.0-alpha.17)

The latest version still uses the built-in search component by default and doesn't add plugin-docsearch to its dependencies, it just becomes compatible with plugin-docsearch. I just use plugin-docsearch in the docs website for a better search experience.

But I'll keep up with any bug fixes for plugin-docsearch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants