Search - excluded words, missing results, and multi-word queries #3342
-
Hi folks, Some questions/observations about search. Here's a search for This is an interesting case, because:
A few related questions:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for creating this discussion!
|
Beta Was this translation helpful? Give feedback.
Thanks for creating this discussion!
Search is implemented with
lunr.js
which includes a stop word filter for most languages (see GitHub search on thelunr-languages
repository). While this is configurable, Material for MkDocs, by default, adds the stopword filter to the search pipeline:mkdocs-material/src/partials/languages/en.html
Line 38 in c96ff22
You can override the behavior by using theme extension (see docs) and removing the
stopWordFilter
from the partial.That should be possible. You can create an issue for filtering stopwords from the missing section.
Normally,
lunr.js
does an OR search and will rank …