1

using

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,
    },
}

Newly created(updated or deleted )objects are not updating in my elastic search index. entering .manage.py rebuild_index command each time when creating or updating objects which working perfectly and updating each change.

Is there any solution to auto rebuild index when changes made to model objects.

1 Answer 1

2

You need to have the real time signal processor activated in settings:

HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.