Cake\ElasticSearch\Type::find PHP Method

find() public method

### Model.beforeFind event Each find() will trigger a Model.beforeFind event for all attached listeners. Any listener can set a valid result set using $query
public find ( string $type = 'all', array $options = [] ) : Query
$type string the type of query to perform
$options array An array that will be passed to Query::applyOptions
return Query
    public function find($type = 'all', $options = [])
    {
        $query = $this->query();
        return $this->callFinder($type, $query, $options);
    }