<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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]