toastdriven/django-haystack — pull request #802 by koterpillar (2013-06-04 07:34:27+00:00)
Title: Fix ES backend losing index settings when rebuilding the index

On `rebuild_index` with ElasticSearch, if the backend object already existed, it deletes the index but then proceeds immediately to bulk post the data, skipping creating the index. This makes the index revert to default settings.

The patch ensures a create index command is always sent first.