FlexSearch

last updated: Mar 22, 2024

https://github.com/nextapps-de/flexsearch

Web's fastest and most memory-flexible full-text search library with zero dependencies.

When it comes to raw search speed FlexSearch outperforms every single searching library out there and also provides flexible search capabilities like multi-field search, phonetic transformations or partial matching.

Depending on the used options it also provides the most memory-efficient index. FlexSearch introduce a new scoring algorithm called "contextual index" based on a pre-scored lexical dictionary architecture which actually performs queries up to 1,000,000 times faster compared to other libraries. FlexSearch also provides you a non-blocking asynchronous processing model as well as web workers to perform any updates or queries on the index in parallel through dedicated balanced threads.

found via tmcw starring it

see also pagefind


I switched this site's notes over to it (1 2), and it kind of stinks that flexsearch doesn't return the index of matches back to you. If you want to highlight matched terms, you have to implement that yourself.

However, the results are definitely better.

↑ up