Lightweight fuzzy search library

前端 未结 8 533
鱼传尺愫
鱼传尺愫 2020-12-14 03:05

Can you suggest some light weight fuzzy text search library?

What I want to do is to allow users to find correct data for search terms with typos.

I could us

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 03:47

    Lucene is very scalable—which means its good for little applications too. You can create an index in memory very quickly if that's all you need.

    For fuzzy searching, you really need to decide what algorithm you'd like to use. With information retrieval, I use an n-gram technique with Lucene successfully. But that's a special indexing technique, not a "library" in itself.

    Without knowing more about your application, it won't be easy to recommend a suitable library. How much data are you searching? What format is the data? How often is the data updated?

提交回复
热议问题