lib/Elastica/Type/AbstractType.php
public function search($query = '', $options = null): ResultSet
    {
        return $this->getType()->search($query, $options = null);
    }
public function search($query = '', $options = null): ResultSet
    {
        return $this->getType()->search($query, $options = null);
    }
public function search ( $ query = '' , $ options = null ) : ResultSet { return $ this -> getType ( ) -> search ( $ query , $ options = null ) ; }
Search on the type.

@param string|array|Query $query   Array with all query data inside or a Elastica\Query object
@param int|array          $options

@return ResultSet with all results inside

@see \Elastica\SearchableInterface::search
Search on the type .