Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

A drop-in replacement for the Haystack Elasticsearch backend which allows multilingual indexes for Django.

Project description

# django-multilingual-search
A multilingual Haystack plugin for Django and Elasticsearch.
The module is a drop-in replacement for the Haystack `ElasticsearchSearchEngine`.

Instead of a single index it creates an index for each language specified in `settings.LANGUAGES`.

A query is routed to the index of the currently active language.

[![Build Status](https://travis-ci.org/sbaechler/django-multilingual-search.svg?branch=master)](https://travis-ci.org/sbaechler/django-multilingual-search)

## Installation

Install with pip:

pip install django-multilingual-search

The major and minor versions of this project correspond to the Haystack version the package was
tested against. This version is for Haystack 2.3.1.


## Configuration

The app provides a drop-in replacement for the ElasticsearchEngine of Haystack.
To use it, specify this engine in `settings.py`:

HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'multilingual.elasticsearch.ElasticsearchMultilingualSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'myproject',
},
}

For automatic indexing of new entries the Haystack
[signal processors](http://django-haystack.readthedocs.org/en/latest/signal_processors.html)
can be used without modification.


## Contributing

Please read the [Contributing](./CONTRIBUTING.md) guide.


## Release History

- 2.3.0: First release

Project details


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-multilingual-search-2.3.0.beta.macosx-10.10-intel.tar.gz (7.7 kB) Copy SHA256 hash SHA256 Dumb Binary any
django-multilingual-search-2.3.0.beta.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page