public static function search(Array $body)
    {
        $instance = new static;
        $params = $instance->basicElasticParams();
        $params['body'] = $body;

        $response = $instance->getElasticClient()->search($params);

        return new ElasticCollection($response, $instance);
    }
public static function search(Array $body)
    {
        $instance = new static;
        $params = $instance->basicElasticParams();
        $params['body'] = $body;

        $response = $instance->getElasticClient()->search($params);

        return new ElasticCollection($response, $instance);
    }
public static function search ( Array $ body ) { $ instance = new static ; $ params = $ instance -> basicElasticParams ( ) ; $ params [ 'body' ] = $ body ; $ response = $ instance -> getElasticClient ( ) -> search ( $ params ) ; return new ElasticCollection ( $ response , $ instance ) ; }
Builds an arbitrary query.

@param array $body
@return ElasticCollection
Builds an arbitrary query .