adjusted elasticsearch extension to version 1.0 of ES

breaking changes.