src/ElasticEngine.php
public function searchRaw(Model $model, $query)
    {
        $payload = (new TypePayload($model))
            ->setIfNotEmpty('body', $query)
            ->get();

        return ElasticClient::search($payload);
    }
public function searchRaw(Model $model, $query)
    {
        $payload = (new TypePayload($model))
            ->setIfNotEmpty('body', $query)
            ->get();

        return ElasticClient::search($payload);
    }
public function searchRaw ( Model $ model , $ query ) { $ payload = ( new TypePayload ( $ model ) ) -> setIfNotEmpty ( 'body' , $ query ) -> get ( ) ; return ElasticClient :: search ( $ payload ) ; }
Make a raw search.

@param \Illuminate\Database\Eloquent\Model $model
@param array $query
@return mixed
Make a raw search .