backend/helper/scout-sonic-engine/src/SonicEngine.php
/**
     * Perform the given search on the engine.
     *
     * @param  \Laravel\Scout\Builder  $builder
     * @throws \SonicSearch\NoConnectionException If the connection to Sonic has been lost in the meantime.
     * @throws \SonicSearch\CommandFailedException If execution of the command failed for which-ever reason.
     *
     * @return array
     */
Perform the given search on the engine.

@return array
Perform the given search on the engine . @return array
private function performSearch(Builder $builder, int $limit = null, int $offset = null)
    {
        $this->search->ping();
        $bucket = class_basename($builder->model);
        return $this->search->query(str_plural($bucket), $bucket, $builder->query, $limit, $offset);
    }
private function performSearch ( Builder $ builder , int $ limit = null , int $ offset = null ) { $ this -> search -> ping ( ) ; $ bucket = class_basename ( $ builder -> model ) ; return $ this -> search -> query ( str_plural ( $ bucket ) , $ bucket , $ builder -> query , $ limit , $ offset ) ; }
Perform the given search on the engine.
Perform the given search on the engine .