Looking for Recommendations on Fuzzy Text Search Libraries

0
2
Asked By CuriousHedgehog42 On

I need some help with a fuzzy text search library for a specific use case. I have a large input string and a search text that won't match exactly with it. I'm looking for a solution that can perform fuzzy search and give me the closest match from the input string. For example, if my input string is 'Enter email address here. Type your message in this field.' and my search text is 'Enter your email', I want the output to be 'Enter email'. Any suggestions?

5 Answers

Answered By CodeSeeker24 On

We’ve actually been using minisearch from npm and it’s been working pretty well for us!

Answered By TechieTurtle99 On

I’ve had a great experience with flex-search! It’s pretty effective and you can find it on GitHub.

Answered By DIYDev101 On

You could even try building your own solution! Think mechanically about how you'd compare one string to another character by character. For example, you might start by extracting the domain from the search text and matching it against your input. You can weigh the similarity and filter to just show the top 5 suggestions. A tool like Claude could help you with this too if you dump your prompt in there.

Answered By CautiousCoder88 On

I’ve heard good things about flexsearch too, but I find its setup a bit complex. I usually go back to using fuse.js instead since it does fuzzy searching and gives a score for each result - works well for me!

Answered By QuestioningQuokka On

Sounds like a tricky task, almost like a coding interview question! What’s your specific use-case for needing this fuzzy search?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.