Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
haystack_elasticsearch
tests
.editorconfig
.gitignore
.travis.yml
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
requirements_dev.txt
setup.cfg
setup.py
tox.ini
travis_pypi_setup.py

README.rst

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" django-haystack-elasticsearch
HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack_elasticsearch.elasticsearch.ElasticsearchSearchEngine',
        ...
    },
}

Elasticsearch 2.x

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

Elasticsearch 5.x

$ pip install "elasticsearch>=5.0.0,<6.0.0" django-haystack-elasticsearch
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.

You can’t perform that action at this time.