Improvements to real-time indexing for ElasticSearch