switch to diff implementation for elastic search api