lib/Elastica/ResultSet/ProcessingBuilder.php
public function buildResultSet(Response $response, Query $query): ResultSet
    {
        $resultSet = $this->builder->buildResultSet($response, $query);

        $this->processor->process($resultSet);

        return $resultSet;
    }
public function buildResultSet(Response $response, Query $query): ResultSet
    {
        $resultSet = $this->builder->buildResultSet($response, $query);

        $this->processor->process($resultSet);

        return $resultSet;
    }
public function buildResultSet ( Response $ response , Query $ query ) : ResultSet { $ resultSet = $ this -> builder -> buildResultSet ( $ response , $ query ) ; $ this -> processor -> process ( $ resultSet ) ; return $ resultSet ; }
Runs any registered transformers on the ResultSet before
returning it, allowing the transformers to inject additional
data into each Result.

@param Response $response
@param Query    $query

@return ResultSet
Runs any registered transformers on the ResultSet before returning it allowing the transformers to inject additional data into each Result .