code: def raw_query(query, index=INDEX_NAME, doc_type=DOC_TYPE):
      
      result = es_conn.search(index=index, doc_type=DOC_TYPE, body=query)
      return result['hits']['hits']
docs: Thin wrapper of the search function to provide useful defaults
  
      https://elasticsearch-py.readthedocs.io/en/master/api.html#elasticsearch.Elasticsearch.search
      http://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html