mysociety/popit-api — pull request #28 by hecticjeff (2014-02-07 15:48:26+00:00)
Title: Reindex script changes

This is needed in order for https://github.com/mysociety/popit/pull/304 to work properly.

- Work around a [bug in elasticsearch-js](https://github.com/elasticsearch/elasticsearch-js/issues/40) with client.close not working.
- Ensure that the mongoose connection is closed after reindexing.