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

Search is broken #297

Open
Layla-P opened this issue May 31, 2023 · 0 comments
Open

Search is broken #297

Layla-P opened this issue May 31, 2023 · 0 comments
Labels

Comments

@Layla-P
Copy link
Contributor

Layla-P commented May 31, 2023

Describe the bug

Try to search for something in the documentation using the search feature in the navbar. A spinner appears and nothing more happens.

Thoughts on the issue

This could have something to do with https://docs.steeltoe.io/index.json as I think this is where the search goes.
However, this may or may not be related to the weird behaviour on doc page load (fans spin up ) and search-worker.js parsing this file which is ~13Mb

Looking deeper into the index.json file, it seems that, rather than actual keywords in the keyword section, it's an entire article. The JS library, Lunr, may not be implemented correctly. We should be able to run an index and cache the result, therefore negating the need to do it on EVERY page load - which is what I think may be happening.

Here is a link to the index pre-building.
https://lunrjs.com/guides/index_prebuilding.html

@Layla-P Layla-P added the bug label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant