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 content with the search box #12

Open
tforkmann opened this issue Sep 7, 2020 · 2 comments
Open

Search content with the search box #12

tforkmann opened this issue Sep 7, 2020 · 2 comments

Comments

@tforkmann
Copy link

Hi there,

we really like Felizia and we are using it for our internal documentation.

The only missing thing is a working search box which should search inside the content.

Do you have any idea how to implement it?

We could help you to implement it.

Best,

Tim

@dbrattli
Copy link
Owner

dbrattli commented Sep 7, 2020

Hi @tforkmann. The simplest way is to just search through the page titles and summaries (limited by summaryLength in config) that is already available in the client. But you probably want a full search on all the text in all the pages!? Then we need to build an inverted index that we would need to host in either the client or in the server. If we keep the index in the client then this will require more load time, but the index could be lazy loaded. If we keep it in the server then it will require a HTTP call i.e more search time.

FYI: I'm btw working on an optional static deployment of Felizia, so you would not need the server anymore (if you don't need it) so it would be nice to have search solution that could work for both with and without a server, or at least configurable how it should work. What do you think? What is your current requirement?

Some ideas from Hugo: https://gohugo.io/tools/search/

@tforkmann
Copy link
Author

Hi @dbrattli,

sorry for the late response.
We want to have a full search of all our text in all the pages.

Currently we are using the server to host it in IIS. But a static deployment would be fine as well. We basically using it for our internal documentation.

Would be nice if we could use the tags at the beginning of each markdown page for indexing the search.

Hugo search index looks suitable.
https://www.npmjs.com/package/hugo-search-index

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

No branches or pull requests

2 participants