code: public function setType($type) {
          if (is_array($type))
              $type = implode(",", array_filter($type));
          $this->type = $type;
          $this->transport->setType($type);
          return $this;
      }
docs: Change what types to act against
  @return \ElasticSearch\Client
  @param mixed $type