updated elasticsearch cookbook.