code: def extra(self, response):
          
          if 'facets' in self.hits:
              response['_facets'] = self.hits['facets']
          if 'aggregations' in self.hits:
              response['_aggregations'] = self.hits['aggregations']
docs: Add extra info to response.