Is it possible for Quarto's search to exclude certain parts of a web page from the search index? #11186
-
DescriptionWe have several pages across our docs that embed Jupyter notebook cells, and the Quarto search functionality indexes the output of these cells by default, as I would expect it to. However, there are a lot of unnecessary search results when I try to search for a term contained in one of these cell outputs. Is there an OOTB way via the default Quarto search to suppress a specific div or span from the search results, either via class or shortcode option? Some ideas of what I'd be looking for are as follows:
I know Algolia can exclude certain parts of a web page from the search index, but I thought I'd see if the default search can do the same. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
See https://quarto.org/docs/websites/website-search.html, probably the "tagFilters". |
Beta Was this translation helpful? Give feedback.
-
Tracked in: |
Beta Was this translation helpful? Give feedback.
Tracked in: