add fields param to es_query fn