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
Search does not work in french language #1745
Comments
@squidfunk Thank you very for your reply. I will just put here some simple tests here.
I want to search the word
|
As noted in the comments, it's not fixable without losing the type-ahead experience. |
I use each time the same
With this
the word |
I use each time the same
With this
the word
the word
the word It seems that there is a tight intrication between |
I took some time on this Sunday and think I have a fix in place as part of 36e1e3d. It seems like swapping the pipeline initialization and also resetting the search pipeline (something that was added in lunr 2.0) seems to do the trick for most of the languages. I tried to test as many languages as possible and added some fixes to the default initialization. |
Note that search is super tricky to get right for 40 languages. This may have introduced new problems I'm not aware of. I tried to test as many languages as I could, but unfortunately, my time is limited. |
Released as part of 5.2.3 |
@squidfunk Thank you so much for your help, and for your work! I tested a minimal example on the last Mkdocs-material release (5.2.3) with:
In this minimal example:
the word "nous" connot be found. |
This is because "nous" is considered a stopword in the French language and filtered out. See: |
Mmm, I closed mkdocs serve, refresh, did a lot of things... and in exactely the same config as #1745 (comment) The search functionality is very important for a web doc, so maybe id it wiser to mark the multi-language search as experimental? I think I will set the language as english by default as it might give the most stable results. Thank you again for help. If I can be of any support for testing, I'd be happy to help. |
I checked that...
Description
Search word in with mkdocs-material fir french language does not work properly
Expected behavior
Simple word such as 'plage' should be found.
Accented words are not consistently found.
Actual behavior
'plag' is found, but not 'plage'
Steps to reproduce the bug
mkdocs.yml
file:and this
./docs/index.md
python -m mkdocs serve
) and search forplage
.Package versions
1.1.2
5.2.2
Project configuration
System information
The text was updated successfully, but these errors were encountered: