olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.94k stars 548 forks source link

Whole word search does not work #464

Closed kevung closed 4 years ago

kevung commented 4 years ago

Hello lunr.js community,

I have noticed that when a word is searched in searchbar in Mkdocs-material-5.2.2, the word is found if all letters of the searched word except the last one are given . Otherwise, the search result is empty.

The problem has been encountered and fixed in the past https://github.com/squidfunk/mkdocs-material/issues/419 and is due according to https://github.com/squidfunk/mkdocs-material/issues/419#issuecomment-318612571 to the default stemming by lunr.

Was there a recent change to this feature in lunr?

Thank you for your help.

kevung commented 4 years ago

It seems to be a problem from Mkdocs-Material since the search is fully working when the language is in english, but fails in french, for example. I'll close this issue for the moment. :)