lucaong / minisearch

Tiny and powerful JavaScript full-text search engine for browser and Node
https://lucaong.github.io/minisearch/
MIT License
4.9k stars 137 forks source link

Recommended language support libraries? #113

Closed akvadrako closed 2 years ago

akvadrako commented 2 years ago

I'm looking at using minisearch in place of lunr, but one requirement I have is language support, specifically for English and Dutch.

I see there are a few npm packages with stemmers, stop words, etc. Has anyone had success integrating them with minisearch?

lucaong commented 2 years ago

Hi @akvadrako , I integrated stemmers in custom applications using MiniSearch in the past, I do not recall the specific one but I can look it up.

That said, I want to share a word of caution: stemmers can help increasing recall, but they often make results confusing for the user, so I found myself relying more and more on fuzzy match instead. Here’s a few reasons why:

Of course there are still legitimate use cases for stemming, but I felt it was useful to share my personal experience. I ended up replacing stemming with fuzzy match in more than a few applications in recent years, with better user experience.

lucaong commented 2 years ago

Closing the issue for now, but feel free to comment further if necessary.