Fix for elasticsearch indexing api changes