code: def search(query, index=INDEX_NAME, doc_type=DOC_TYPE):
      
      results = raw_query(query, index=index, doc_type=doc_type)
      return [r['_source'] for r in results]
docs: Thin wrapper of the main query function to provide just the resulting objects