Skip to main content

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.

https://travis-ci.org/sbaechler/django-multilingual-search.svg?branch=master

Currently, support for Django 1.10 is not guaranteed.

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_backend.ElasticsearchMultilingualSearchEngine',
        'URL': 'http://127.0.0.1:9200/',
        'INDEX_NAME': 'myproject',
    },
}

For automatic indexing of new entries the Haystack signal processors 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 guide. Any help is greatly appreciated.

My current company is not using Python, so I won’t be able to maintain and keep this library updated.

Release History

  • 2.4.2: Support Haystack 2.4.1

  • 2.4.1: Add compatibility with Django-parler.

  • 2.4.0: Update code for compatibility with Haystack 2.4

  • 2.3.0: First release

Metadata

Release files for django-multilingual-search 2.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-multilingual-search 2.4.1
File Size Uploaded
django-multilingual-search-2.4.1.tar.gz 5.9 kB Details

Release files / django-multilingual-search-2.4.1.tar.gz

Download URL django-multilingual-search-2.4.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84038dc8546619df1eae8582ac5e49127885efc2c778ddedd9f67ac53243d63a
BLAKE2b-256 checksum
How to use checksums
f1e633e39a3bffa922fb6bce27b7080188e5c21df816c65f300e819e2f3dfce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page