Issue 331 performance es refresh

See #331.

The elasticsearch index is set to no refresh while indexing. When indexing is finished, the index is set to refresh and optimize.
I'm not sure I understand: we always create a new index, so why do we have to close existing indexes?