def search(query, index=INDEX_NAME, doc_type=DOC_TYPE):
    """
    Thin wrapper of the main query function to provide just the resulting objects
    """
    results = raw_query(query, index=index, doc_type=doc_type)
    return [r['_source'] for r in results]
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 ]
Thin wrapper of the main query function to provide just the resulting objects