-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent changes break whole word search #419
Comments
This has to do with the default stemming by lunr, fixed in |
Thats awesome. Thanks! |
Fixed in 1.8.0 |
Hello everybody, |
The problem I encounter seems to be a problem from Mkdocs-Material. The search is fine with a
but does not work with this
|
Hello, I'm experiencing a very similar issue with 7.0.4. I've read through this issue and #1603 and #1605. I get what appears to be no search results for certain whole words which appears to be because of stemming, (e.g. "refer" returns results for partial matches of "reference", but "reference" itself returns no results). I noticed the comment that stemming was disabled... and I saw [the suggestion] to extend the theme and override I understand there's a difference of mkdocs vs. the material theme, and complexity of accommodating search use-cases across many languages. What I don't understand is why whole words wouldn't be indexed in addition to stemmed words? From a user POV you want to be able to search for whole words (regardless of stemming) and aren't these whole words defined by the separator? |
Thanks for reporting. If you can narrow it down to a small reproducible case and two versions that work / don't, we can debug it. The official docs work with that very use case you mentioned, i.e. "reference" returns results. |
I've found the problem has something to do with Not working example.Search configuration in
Working example
|
PS – How do you enable the query string |
@connerxyz ah yeah, prebuilding the index does not honor the pipeline, which excludes stemming by default. I think I also mentioned this on some issue on the MkDocs issue tracker some time ago.
Deep linking of search results is one part of sharing search results, currently only available via Insiders 😉 |
Good stuff. I love your funding model, with the goals etc. This is a great project/community. Thanks. |
Description
The latest release (1.7.5) breaks some search patterns for whole words. In this case typing
restor
in the search field correctly shows matches for the whole wordrestore
while when the whole word is typed into the search field, the search results are empty.This can be tested with a small md file with the following contents:
The previous version (1.7.4) does not have this issue.
The text was updated successfully, but these errors were encountered: