# mongoosastic/mongoosastic

Index Mongoose models into elasticsearch automatically.

Repository: https://github.com/mongoosastic/mongoosastic
Canonical: https://ross.abutalabs.com/products/mongoosastic
Homepage: https://mongoosastic.github.io/mongoosastic/
Language: TypeScript
License: MIT
License Family: permissive
Topics: elasticsearch, elasticsearch-queries, mongoose, javascript, elastic, mongodb, nodejs
Last push: 2023-03-07T16:23:05+00:00

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

## Adoption (not part of the score)
Stars 1073, forks 324 (observed 2026-08-28T04:03:28.852344+00:00)

## What it is
Mongoosastic is a Mongoose plugin that automatically indexes MongoDB models into Elasticsearch, keeping documents synchronized on save. It adds a search() method to models so you can query Elasticsearch directly and hydrate results back into Mongoose documents.

## Use cases
- add full-text search to a MongoDB app via Elasticsearch
- automatically sync Mongoose model changes to an Elasticsearch index
- search users or products by free-text queries from Node.js
- bulk index an existing MongoDB collection into Elasticsearch
- filter or transform documents before indexing them into Elasticsearch

## When to choose
- you use Mongoose/MongoDB and want automatic Elasticsearch indexing with minimal setup
- you want search results hydrated back into Mongoose documents
- you need bulk indexing, filtering, or transformation hooks for your index pipeline

## When to avoid
- you don't use MongoDB with Mongoose
- you use a different search engine like Meilisearch, Typesense, or Algolia
- you need a fully custom indexing pipeline unrelated to Mongoose models

## Facets
- artifact type: plugin
- maturity: active
- function: search-engine, plugin-system, database
- domain: databases, web-development, backend
- platform: -
- tags: mongoose, elasticsearch, mongodb, full-text-search, data-indexing, typescript, search, nodejs, javascript

## Member repositories
- mongoosastic/mongoosastic (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.852344+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-30T06:53:37.977014+00:00, confidence not recorded.
  - readme: https://github.com/mongoosastic/mongoosastic (fetched 2026-08-28T04:03:28.852344+00:00, sha 3abe25eaa834)
  - homepage: https://mongoosastic.github.io/mongoosastic/ (fetched 2026-08-29T12:55:30.267154+00:00, sha 9136add3608d)
  - registry_npm: https://registry.npmjs.org/mongoosastic (fetched 2026-08-29T12:55:30.269787+00:00, sha b04d8e308240)
- Data as of 2026-08-30T08:39:29.467469+00:00.
