Fixing elasticsearch plugin