original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Builds an arbitrary query.
  
  @param array $body
  @return ElasticCollection
docstring_tokens: Builds an arbitrary query .