def search_raw(self, query, indices=None, doc_types=None, headers=None, **query_params):
from .query import Search, Query<EOL>if isinstance(query, Query):<EOL><INDENT>query = query.search()<EOL><DEDENT>if isinstance(query, Search):<EOL><INDENT>query = query.serialize()<EOL><DEDENT>body = self._encode_query(query)<EOL>path = self._make_path(indices, doc_types, "<STR_LIT>")<EOL>return self._send_request('<STR_LIT:GET>', path, body, params=query_params, headers=headers)<EOL>
Execute a search against one or more indices to get the search hits.

        `query` must be a Search object, a Query object, or a custom
        dictionary of search parameters using the query DSL to be passed
        directly.