TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.17k stars 362 forks source link

Item search: Investigate lunr.js for indexing text fields #5590

Open na9da opened 3 years ago

na9da commented 3 years ago

Currently we use the minisearch library to generate full text indexes for text fields. This works great but we have clients requesting text search support for non-english languages. The lunr.js library appears to have the most support for non-english languages. This ticket is to investigate switching to lunr.

Other factors to consider:

If found suitable, we could also utilize the library for client side catalog searching.

zoran995 commented 3 years ago

We might also check flexsearch. I am not sure how it plays with non-english languages

na9da commented 3 years ago

That's a good find @zoran995 - looks promising. I'll definitely test out flexsearch and some others listed in the benchmark.