Is it possible to disable Material's search plugin in favour of the one built-in to MkDocs? #8116
-
I notice that Material overrides the default search plugin with its own. Whilst they have different entry points:
it seems that setting
nonetheless grabs the Is it possible to disable this behaviour, and use the Material theme with the default search plugin? Context: we've found in patrick-kidger/equinox#984 that we get a degraded experience with I'm aware that a new search experience is in the works (#6307), but until then I'm looking for an alternative solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @patrick-kidger, this should be possibile by adding a So Release notes, the best kind of docs 😂: If that doesn't work in 1.6.1 I would have to look deeper. |
Beta Was this translation helpful? Give feedback.
I don't think MkDocs' search implementation will save you (if you're interested, here's a blog post on this topic). Have you tried tweaking the
separator
of the search plugin that is used for tokenization? It makes a big difference. For instance, the default is:Interestingly, it doesn't even support multi-character separators (see blog post), so the
+
is actually a no-op. This is because of how lunr.js' tokenizer works, and why we completely replaced it. Now, here's the one we use for our docs:I think with some experimentation you'll be able t…