Search doesn't have to be hard. Haystack lets you write your search code once and choose the search engine you want it to run on. With a familiar API that should make any Djangonaut feel right at home and an architecture that allows you to swap things in and out as you need to, it's how search ought to be.
Get started
-
Install the package:
- Latest stable (2.6.0) off PyPI:
pip install django-haystack - Latest dev off GitHub:
pip install -e git+https://github.com/django-haystack/django-haystack.git@master#egg=django-haystack
- Latest stable (2.6.0) off PyPI:
- Add
haystackto yourINSTALLED_APPS. - Create
search_indexes.pyfiles for your models. - Setup the main
SearchIndexviaautodiscover. - Include
haystack.urlsto your URLconf. - Search!
More information in the full documentation.