add fields param to es_query fn
Merge pull request #1382 from dimagi/fields

add fields param to es_query fn