(self)
return [self.normalize_result(self.query, r) for r in raw_hits]
Return the docs from the response.
Return the docs from the response.
Return the docs from the response .
def hits(self):
        """Return the docs from the response."""
        raw_hits = self.raw_hits
        if not raw_hits and self.query.uses_aggregations() and self.query._size == 0:
            raise ESError("no hits, did you forget about no_hits_with_aggs?")

        return [self.normalize_result(self.query, r) for r in raw_hits]
def hits ( self ) : raw_hits = self . raw_hits if not raw_hits and self . query . uses_aggregations ( ) and self . query . _size == 0 : raise ESError ( "no hits, did you forget about no_hits_with_aggs?" ) return [ self . normalize_result ( self . query , r ) for r in raw_hits ]