django-cms-search
django-cms-search copied to clipboard
info about multilang indexes
Hello. Sorry to write this as an issue, but github provides no way of emailing you
You made a great job making multilanguage indexes for haystack. I'm trying to figure it out because I need to adapt it to other translated apps, and I'm not being able to follow the whole thing. For example, in indexes.py:L38
it says if 'HaystackTrans' in getattr(attrs['HaystackTrans'], 'fields', []):
but searching for 'HaystackTrans'
doesn't throw any results.
I wonder how django-cms-specific is the MultiLanguageIndexBase
metaclass. I see the prepare
field thing, which seems to work with cms_search.search_indexes.page_index_factory._PageIndex
.
I haven't been able to make a breakpoint in the metaclass stop, in order to debug what's going on.
Thanks