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.4.
## 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. It is recommended that a custom SignalProcessor be used
instead of the `RealtimeSignalProcessor` because of server timeout issues with the latter.
## Contributing
Please read the [Contributing](./CONTRIBUTING.md) guide.
## Release History
- 2.3.0: First release
- 2.4.0: Update code for compatibility with Haystack 2.4
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.4.
## 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. It is recommended that a custom SignalProcessor be used
instead of the `RealtimeSignalProcessor` because of server timeout issues with the latter.
## Contributing
Please read the [Contributing](./CONTRIBUTING.md) guide.
## Release History
- 2.3.0: First release
- 2.4.0: Update code for compatibility with Haystack 2.4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-multilingual-search-2.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cc33d286bb94d7f75e5e035ad74d07ffee3c2c9f7be2be77c41e799e4ab277f |
|
MD5 | 669e23d0d5f16f75cd30ece896c1312b |
|
BLAKE2b-256 | 87a1c0580b7055ccf307a640abfa677b6b7f5b1f24b26e1ec2b7f5285887b91f |
Close
Hashes for django-multilingual-search-2.4.0.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56f94e6c74361c8b1837d23b5d8a3b19540009ef11e398cdba465312c5f70d9 |
|
MD5 | bf2dc079bfbf8f68079fbe84d1da352a |
|
BLAKE2b-256 | 5548f780507ca9b6223018341e8fab42e9ffa71dda0045923f228114b0b4b413 |