您的位置:首页 > 编程语言 > Go语言

django haystack update_index 实现自动化 同步

2016-07-16 17:57 513 查看
上官方文档

http://django-haystack.readthedocs.io/en/v2.4.1/signal_processors.html

找到RealTime - RealtimeSignalProcessor

一个简单的设置:

If the model has an associated SearchIndex, the RealtimeSignalProcessor will then trigger an update/delete of that model instance within the search index proper.

Configuration looks like:

HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'


config文件指的是settings.py
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  django