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

Improve Algolia search #1749

Open
brillout opened this issue Jul 16, 2024 · 0 comments
Open

Improve Algolia search #1749

brillout opened this issue Jul 16, 2024 · 0 comments

Comments

@brillout
Copy link
Member

Description

The search on vike.dev is a bit erratic.

I guess it's mostly due to misconfiguring Algolia Docsearch. E.g the search on vitejs.dev seems much better.

Same post on Algolia's forum.

How to avoid duplicates in the result list?

For example, searching for "oncreateapp" lists the page https://vike.dev/onCreateApp twice.

How to also search code snippets?

It seems like code blocks are ignored. For example, searching for "addMiddleware" shows No result even though "addMiddleware" is present on the page vike.dev/renderPage (inside the first code block).

How to show all results?

For example, searching for "oncreateapp" doesn't list the page https://vike.dev/vuex but does list https://vike.dev/pinia even though both pages share the same text matching "oncreateapp".

It seems like Docsearch only shows the top results? Can we configure it to show all results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant