Elastica\Multi\MultiBuilderInterface::buildMultiResultSet PHP Method

buildMultiResultSet() public method

public buildMultiResultSet ( Response $response, Search[] $searches ) : ResultSet
$response Elastica\Response
$searches Elastica\Search[]
return ResultSet
    public function buildMultiResultSet(Response $response, $searches);

Usage Example

Example #1
0
 /**
  * @return \Elastica\Multi\ResultSet
  */
 public function search()
 {
     $data = $this->_getData();
     $response = $this->getClient()->request('_msearch', Request::POST, $data, $this->_options);
     return $this->_builder->buildMultiResultSet($response, $this->getSearches());
 }
MultiBuilderInterface