docusaurus-search-local
docusaurus-search-local copied to clipboard
Should search find documents based on front-matter keywords?
My pages have, for example:
---
title: Unblocking Bloom from Windows Controlled Folder Access
sidebar_position: 5
slug: /windows-controlled-folder-access
keywords: [troubleshooting, Defender, controlled, folder]
---
I find that search will find terms in the title
, but not the keywords
. For example, I would expect that if I search for "troubleshooting", this document would be listed. Is there something I can do to start indexing on keywords
?
➕ On this feature request!
For now, I've just added some hidden content on my page that includes the keyword. Definitely not ideal though.
I would also expect to be able to search over frontmatter tags:
---
title: My title
tags:
- Foo
- Bar
---
Looking for this behaviour as well.
This is available with https://github.com/praveenn77/docusaurus-lunr-search which I switched from due it's lack of style customization
It is possible to make search based on keywords, if they are appeared in the generated HTML.
such as:
<meta name="keywords" content="...">
Currently it is not supported, PRs welcome. If no one is interested in, I'll do it once I got time.
Searching based on keywords (and descriptions) from meta tags (front matter in markdown) is supported via 0.41.0