Allow searching of metadata #532
Labels
improvement
Not a bug
Pagefind CLI
The CLI responsible for indexing content
Pagefind Search
The web-facing search js/wasm API
Milestone
I've noticed that Pagefind doesn't seem to find pages where the search terms just appear in the title - if it's outside
data-pagefind-body
.Basically I have pages like this:
In my example, the words "cheat sheet" don't appear in the actual article but just in the title.
If I now search for "cheat sheet" (with the Default UI), Pagefind doesn't find this page.
My workaround is to also add
data-pagefind-body
to the<h1>
element but in my opinion this shouldn't be necessary.This problem probably extends to all meta data.
The text was updated successfully, but these errors were encountered: