Added elasticsearch configuration, also parameterized it.