Replies: 2 comments 1 reply
-
👋 @argl There isn't currently a way to do this for Pagefind, as it always normalizes terms both when searching and indexing. So Supporting special characters is something that could likely be added as an option, though. One of the later additions to Pagefind's internals is the ability to index multiple words at a single "location" — e.g. It would need to be an opt-in feature so as to not cause too much chaos and index bloat, and it would need more thought into how the frontend searches. Currently if you type Something to ponder at least! |
Beta Was this translation helpful? Give feedback.
-
Thanks! This is more or less in line with what I thought. I did hack literal html tag searches into pagefind to check the effort needed. As you said, this touches the indexer and the search API side. There are some magic regular expressions along the way which I would find difficult to quickly marry to a configurable system without some major code additions. Thanks again for this amazing piece of work, even if it does not fit our requirements fully today, I hope I will find a use for it in the future! |
Beta Was this translation helpful? Give feedback.
-
When evaluating pagefind for indexing/searching MDN content (nice demo!), I noticed there are a lot of pages on MDN with the literal HTML tag as the title, for example the
<table>
documentation page.Ideally, I would search for
<table>
and get to the main HTML table documentation page, but unfortunately, this is not the case. I understand that this is a wacky request very specific to the MDN content, but I am wondering if this can be done, and how? I do have full control over the HTML that is passed to the indexer.Thanks for this great library!
Beta Was this translation helpful? Give feedback.
All reactions