aldryn-search for Django CMS搜索全文

时间:2015-02-06 09:11:34

标签: django search content-management-system django-haystack

如何做到这一点? 现在我只获得了针对页面标题的索引。像cms.title对象被索引。

我已按预期添加应用:

    #settings.py
    #TODO: It's not recommended for production use but it will return results.
    HAYSTACK_CONNECTIONS = {
        'default': {
            'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
        },
    }
    HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter', ]
    ALDRYN_SEARCH_REGISTER_APPHOOK = True

是否有任何我不知道的触发器?

1 个答案:

答案 0 :(得分:0)

虽然这是个老问题,但我希望这可以帮助其他人

我还加了 INSTALLED_APPS = [ 'aldryn_search', 'spurl', 'haystack', 'standard_form' ] Mention that the aldryn search view requires standard_form #87