private function doSearch(RequestInterface $request)
    {
        $searchRequest = [
            'index' => $request->getIndex(),
            'type'  => $request->getType(),
            'body'  => $this->requestMapper->buildSearchRequest($request),
        ];

        return $this->client->search($searchRequest);
    }
private function doSearch(RequestInterface $request)
    {
        $searchRequest = [
            'index' => $request->getIndex(),
            'type'  => $request->getType(),
            'body'  => $this->requestMapper->buildSearchRequest($request),
        ];

        return $this->client->search($searchRequest);
    }
private function doSearch ( RequestInterface $ request ) { $ searchRequest = [ 'index' => $ request -> getIndex ( ) , 'type' => $ request -> getType ( ) , 'body' => $ this -> requestMapper -> buildSearchRequest ( $ request ) , ] ; return $ this -> client -> search ( $ searchRequest ) ; }
Execute the search request with ES.

@param RequestInterface $request Search request.

@return array
Execute the search request with ES .