Skip to content

How to implement a search with Elasticlunr for example? #1467

Answered by ArnaudLigny
matthieu2607 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @matthieu2607, I thinks the best to do that is using the output/formats feature:

  1. create a new format dedicated to elasticlunr
  2. associate this format to homepage type (to list all pages)
  3. create a layout to format the JSON

Example:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by matthieu2607
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
Category
Q&A
Labels
None yet
2 participants