Skip to content

Advanced Search #807

Aug 3, 2023 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

@junedtan I'm not familiar with v1 of quire (built on 11ty) but the v0 (built on Hugo) came with lunr which is a client side full text search engine.

At build time a template called 'search-index.html' iterates over every page you specify in the catalog and outputs a large json file (this is your search index). Another page template creates the actual search page a user would visit.

When the search page is visited a GET request fetches the json and loads it into a Search class (which stores the lunr instance). The Search class can be used to query the index. What we did was use lunr full text search to get the initial search results and the iterate over each result to further filter by ou…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Erin-Cecele
Comment options

Answer selected by Erin-Cecele
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants