# weixsong/elasticlunr.js

Based on lunr.js, but more flexible and customized.

Repository: https://github.com/weixsong/elasticlunr.js
Canonical: https://ross.abutalabs.com/products/elasticlunrjs
Homepage: http://elasticlunr.com
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-12-10T06:38:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4094, "days_push": 1362, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2066, forks 152 (observed 2026-08-28T04:06:10.138615+00:00)

## What it is
Elasticlunr.js is a lightweight full-text search engine library written in JavaScript, forked from Lunr.js with added flexibility. It supports query-time boosting, field search, boolean models, and Elasticsearch-like scoring, designed for browser and offline search over small document collections.

## Use cases
- add search to a static website without a backend
- implement offline search in a mobile app or downloaded documents
- index a few thousand documents in Node.js without deploying Elasticsearch
- search specific fields of JSON documents with per-field boosting
- build a client-side search index that loads in the browser

## When to choose
- you need lightweight, dependency-free full-text search in the browser or Node.js
- your corpus is small (thousands of documents) and a server-side search engine is overkill
- you want query-time boosting and field-level search configuration
- you need offline or low-bandwidth search functionality

## When to avoid
- you need to index large corpora or scale horizontally - use Elasticsearch or Solr
- you need multilingual support beyond what the pipeline provides
- you need active maintenance and recent updates - the maintainer is seeking new maintainers
- you need faceted search, highlighting, or other advanced search features

## Facets
- artifact type: library
- maturity: maintenance
- function: search-engine, nlp
- domain: web-development
- platform: browser
- tags: full-text-search, offline-search, client-side-search, inverted-index, query-time-boosting, lunr-fork, search, natural-language-processing, nodejs, javascript

## Member repositories
- weixsong/elasticlunr.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:10.138615+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:54.602370+00:00, confidence not recorded.
  - readme: https://github.com/weixsong/elasticlunr.js (fetched 2026-08-28T04:06:10.138615+00:00, sha 8de977241bdd)
  - homepage: http://elasticlunr.com (fetched 2026-08-29T10:37:34.758691+00:00, sha 1d25d3c60564)
  - site_page: http://elasticlunr.com/docs/index.html (fetched 2026-08-29T10:37:34.767910+00:00, sha 2ce3e60e412e)
  - site_page: http://elasticlunr.com/docs/pipeline.js.html (fetched 2026-08-29T10:37:34.769963+00:00, sha e221e2b78188)
  - site_page: http://elasticlunr.com/docs/stop_word_filter.js.html (fetched 2026-08-29T10:37:34.771690+00:00, sha 1437b258f519)
  - site_page: http://elasticlunr.com/docs/stemmer.js.html (fetched 2026-08-29T10:37:34.773221+00:00, sha cdfe4903dc65)
- Data as of 2026-08-30T08:39:29.467469+00:00.
