Fast full-text search library for the browser and Node.js
open sourceApache-2.0free
FlexSearch is a full-text search library for JavaScript that runs in the browser and in Node.js, built for speed: its benchmarks show queries far faster than other JavaScript search libraries. It supports multi-field document search, phonetic transformations, partial matching, tag search, result highlighting and suggestions, with charsets for Latin, CJK, Hindi and Arabic text. Workers run index updates and queries in parallel threads, and since version 0.8 indexes can persist to IndexedDB, Redis, SQLite, Postgres, MongoDB or ClickHouse instead of staying in memory.
Problems it solves
- add fast full-text search to my website without a search server
- search a large list in the browser as the user types
- full-text search in Node.js without running Elasticsearch
- fuzzy and phonetic matching for client-side search
- persist a JavaScript search index to Redis or Postgres
Features
- multi-field document search
- phonetic transformations and partial matching
- tag search, highlighting and suggestions
- worker threads for parallel indexing and queries
- persistent indexes in IndexedDB, Redis, SQLite, Postgres, MongoDB or ClickHouse
- Latin, CJK, Hindi and Arabic charsets
Alternatives
The same job
These do what FlexSearch does.
- OramaJS Full-text, vector and hybrid search in your browser, server or edge network
- Fuse.js Lightweight fuzzy-search library, with zero dependencies
- Manticore Search Fast open source search database for full-text, vector and hybrid search, an Elasticsearch alternative
- ParadeDB Postgres for full-text search, vector retrieval and aggregations, as an extension (pg_search)
