Lunr search results missing content #1663
-
DescriptionEnvironment
Expected behaviorSearching for a certain key word returns results in a specific file. Steps to reproduce the behavior
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Lunr search only indexes collection documents e.g. posts or any custom collections you have. It does not currently index I'd suggest using Jekyll Algolia instead since it's indexing is way more powerful and performant than what the theme has with Lunr. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add |
Beta Was this translation helpful? Give feedback.
-
thanx! I've found the |
Beta Was this translation helpful? Give feedback.
-
This caught me out a bit yesterday. Just wondering whether it would be best to submit a PR to update the docs with this information, or whether a PR to include
Which is a little misleading as it’s only posts and documents in collections. Edit: I hadn’t spotted the incoming docs PR when I wrote this, sorry! :) |
Beta Was this translation helpful? Give feedback.
Lunr search only indexes collection documents e.g. posts or any custom collections you have. It does not currently index
site.pages
which is why you're not seeing those in search results.I'd suggest using Jekyll Algolia instead since it's indexing is way more powerful and performant than what the theme has with Lunr.