An extension to django CMS to provide multilingual Haystack indexes (fork)
This package has been forked to work with current django-haystack 2.0, thanks to the various patches and branches available that got most of this done.
This module been renamed to a more consistant name for cmsplugins and uploaded to pypi so more people can use haystack 2.0 by Martin Owens <email@example.com>
This package provides multilingual search indexes for easy Haystack integration with django CMS.
Instead of indexing each language as a seperate index, all pages/titles are indexed you can then either search for all pages with any language or use a filter with a custom SearchView class with an updated SearchQuerySet:
- class SearchView(BaseView):
- def __call__(self, request):
- language = get_language_from_request(request) self.searchqueryset = SearchQuerySet().filter(language=language) return BaseView.__call__(self, request)