FlexSearch is a JavaScript full-text search library for browser and Node.js workloads. It supports document-style multi-field search, fuzzy matching, highlighting, and optional persistent indexes.
Overview
FlexSearch gives applications an in-process or embedded search index rather than requiring a separate search server. It targets both client-side browser use and server-side Node.js integration through npm, with bundles ranging from minimal to full feature sets.
Search capabilities include multi-field document indexes, phonetic and partial matching, tag search, suggestions, result highlighting, and boolean-style resolver queries. Large workloads can offload indexing and queries to worker threads for parallel updates and lookups.
Indexes can remain in memory or attach to persistent storage. Connectors cover in-browser IndexedDB and server-side Redis, SQLite, Postgres, MongoDB, and ClickHouse, so indexes can survive reloads and scale with external stores.
Encoders and charset presets cover Latin, CJK, Hindi, Arabic, Cyrillic, Greek, and Hebrew text. APIs distinguish flat id-content indexes, worker-backed indexes, and structured document indexes that fan out across multiple internal indexes.
Key features
- Browser and Node.js support
- Multi-field document search
- Fuzzy and phonetic matching
- Worker-thread parallel indexes
- Persistent index connectors
- Tag search and suggestions
- Result highlighting
- Export and import indexes
Use cases
- Client-side site search
- In-app document lookup
- Offline searchable indexes
- Multi-language text retrieval
- Embedded search without Elasticsearch