@classmethod
def search(cls, body, resolve_hits=True):
    """Retrieve objects from elasticsearch via a search query

        Returns the ES search result. If resolve_hits is set to true the hits
        are converted to Documents.
        """
    docs = cls._get_es().search(index=cls.INDEX, doc_type=cls.DOC_TYPE,
        body=body)
    if resolve_hits:
        data = []
        for d in docs['hits']['hits']:
            data.append(cls.from_raw_es_data(d))
        docs['hits']['hits'] = data
    return docs
