Skip to main content

An elasticsearch2 compatible backend for Haystack

Project description

Elasticsearch 2 Engine for Haystack

:author: Nick Sarbicki
:date: 2016/12/05
.. image::

This is a fairly hacked together Elasticsearch backend for haystack which supports
all versions of Elasticsearch up to 2.4.

This is strongly based on the original haystack Elasticsearch backend and essentially
just patches breaking changes from Elasticsearch 2 to replicate the functionality from
Elasticsearch 1.


The requirements of this project largely match those of Haystack (except you can use Elasticsearch 2).

You can find these here:

Otherwise it will require the appropriate elasticsearch-py installation. In this case the major
version must match the version of elasticsearch you are using.

In general the project supports Python 2.7 and 3.4+.


To run this engine in haystack you need to set your connections settings with the ``ENGINE``
variable as so:

.. code-block:: python

'default': {
'ENGINE': 'elasticsearch2_backend.ElasticsearchSearchEngine',
'URL': '',
'INDEX_NAME': 'haystack',


The tests from haystack for the elasticsearch engine have been ported over. To run these make sure
you have nose installed (see the ``test-requirements.txt`` file) and then run
``nosetests -v --with-coverage --cover-package=elasticsearch2_backend``.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for elasticsearch2-haystack, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size elasticsearch2_haystack-0.1-py2-none-any.whl (14.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size elasticsearch2_haystack-0.1-py3-none-any.whl (14.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size elasticsearch2-haystack-0.1.tar.gz (30.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page