-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add support for https://lunrjs.com/ search index #527
Comments
Hi @randombenj, I like this approach. We are using the Hugo static website generator based on markdown documents. We use the Relearn Hugo theme which is shipped with the lunrjs search engine. Therefore each Hugo documentation has a var relearn_search_index = [
{
"content": " Documentation as Code You should write the documentation ...,
"description": "Explains the principle of Documentation as Code.",
"tags": null,
"title": "Documentation as Code",
"uri": "/training/advanced/docs-as-code/index.html"
},
...
] Minimal setup
Advanced setup |
@randombenj Yes I did. I think this idea was dropped first of all because to serve the pre-built index it would need to be built in the backend which is not in JavaScript but Python. Also, Lunr doesn't allow you update an existing index, which would mean that it would have to be rebuilt completely every time something is updated. An alternative could be elasticlunr that allows you to update documents, but that still has the issue of building it in the backend. Also, in my testing, extracting all the text from the uploaded zip files can also be quite expensive. |
It would be nice to have search across projects, to support this let's have a look at lunrjs as it
seems to be the default frontend search thingy.
The text was updated successfully, but these errors were encountered: