You should be using `ElasticSearch.search` instead of copy-pasting it here. You'll need to refactor `ElasticSearch.search` a little bit though so it can work with non-query_string queries.