1
Django==1.8
django-haystack==2.3.1
setting.py:
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE':'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'haystack',
'TIMEOUT': 60,
},
}
新創建(更新或刪除)的對象不是我的彈性搜索更新指數。 每次創建或更新完美工作的對象並更新每個更改時,都會輸入.manage.py rebuild_index
命令。
有什麼解決方案來自動重建索引時,對模型對象進行更改。