Skip to main content

A set of backends for using Elasticsearch on Haystack.

Project description

django-haystack-elasticsearch

Updates

A set of backends for using multiple versions of Elasticsearch on Haystack.

  • Free software: BSD license

How to use

  • Make sure that your elasticsearch library has the same major version as your Elasticsearch server.
  • Choose the right backend as your ENGINE on Haystack.

Elasticsearch 1.x

$ pip install "elasticsearch>=1.0.0,<2.0.0"
HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack_elasticsearch.elasticsearch.ElasticsearchSearchEngine',
        ...
    },
}

Elasticsearch 2.x

$ pip install "elasticsearch>=2.0.0,<3.0.0"
HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack_elasticsearch.elasticsearch2.Elasticsearch2SearchEngine',
        ...
    },
}

Elasticsearch 5.x

$ pip install "elasticsearch>=5.0.0,<6.0.0"
HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack_elasticsearch.elasticsearch5.Elasticsearch5SearchEngine',
        ...
    },
}

Credits

This project was based on the original Elasticsearch backend for Haystack. Special thanks to @PedroAquilino and @joaojunior for their work towards ES2 support.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-12-29)

  • First release on PyPI.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_haystack_elasticsearch-0.1.0-py2.py3-none-any.whl (21.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Dec 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page