TiloBox
Back to directory
Lunr.js project preview

Lunr.js

A bit like Solr, but much smaller and not as bright: full-text search in the browser.

LicenseMIT
GitHub stars8.5k
Last commit6 days ago
Tags5 topics
Lunrjs EngineInverted Index JsDeveloper ToolsBrowser Full TextClient Side Search
Overview

Why consider Lunr.js?

Lunr.js is an open-source client-side full-text search engine for JavaScript written by Oliver Nightingale. Lunr indexes documents in the browser or Node.js, providing tokenization, stemming, stop-word filtering, and inverted index searching without external database servers.

Guided learning

Learn Lunr.js by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of Lunr.js

Lunr.js builds instant searchable documentation catalogs entirely on client browsers.

Quickstart

bash
1npm install lunr
javascript
1import lunr from 'lunr';
2const idx = lunr(function () {
3 this.field('title');
4 this.field('body');
5 this.add({ id: 1, title: 'Invoicing Setup', body: 'Configure automated invoice generation' });
6});
7const results = idx.search('invoice');

Lunr.js is licensed under the permissive MIT License.

Related tools

More options with a similar category or technology profile.

Lunr.js FAQs

Lunr.js is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository and official website for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

Lunr.js is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

Lunr.js is listed as an alternative to Solr. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.