# django-haystack/django-haystack

Modular search for Django

Repository: https://github.com/django-haystack/django-haystack
Canonical: https://ross.abutalabs.com/products/django-haystack
Homepage: http://haystacksearch.org/
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-21T21:32:07+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 55, longevity 100
- inputs: {"age_days": 6425, "days_push": 12, "days_rel": 90, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3734, forks 1312 (observed 2026-08-28T04:08:15.760119+00:00)

## What it is
Haystack is a modular search library for Django that provides a unified API for plugging in different search backends such as Solr, Elasticsearch, Whoosh, and Xapian. It supports advanced features like faceting, More Like This, highlighting, spatial search, and spelling suggestions without modifying your code when switching backends.

## Use cases
- add full-text search to a Django app
- swap search engines without rewriting search code
- implement faceted search on Django models
- add spelling suggestions and highlighting to site search
- index Django models into Elasticsearch or Solr
- add spatial/geographic search to a Django project

## When to choose
- you use Django and want a consistent, model-based search API across multiple search backends
- you need features like faceting, More Like This, highlighting, or spelling suggestions out of the box
- you want to avoid vendor lock-in to a single search engine

## When to avoid
- you are not using Django, since Haystack is tightly coupled to it
- you need modern vector/semantic search rather than traditional full-text search
- you prefer direct, fine-grained control over a specific search engine's native client

## Facets
- artifact type: library
- maturity: active
- function: search-engine, web-framework
- domain: web-development, backend
- platform: python
- tags: django, full-text-search, elasticsearch, solr, whoosh, xapian, faceting, spatial-search, search, web-server

## Member repositories
- django-haystack/django-haystack (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.760119+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-29T18:29:11.985577+00:00, confidence not recorded.
  - readme: https://github.com/django-haystack/django-haystack (fetched 2026-08-28T04:08:15.760119+00:00, sha fd4945dc8d55)
  - homepage: http://haystacksearch.org/ (fetched 2026-08-29T09:24:14.098894+00:00, sha c35fde7e0a55)
  - registry_pypi: https://pypi.org/pypi/django-haystack/json (fetched 2026-08-29T09:24:14.110598+00:00, sha c3640a3d8ced)
- Data as of 2026-08-30T08:39:29.467469+00:00.
