public function defaultQueryMethod($query, $config)
    {
        switch (strtolower($this->config('search_using', 'plain'))) {
            case 'tsquery':
                return new ToTsQuery($query, $config);
            case 'phrasequery':
                return new PhraseToTsQuery($query, $config);
            case 'plainquery':
            default:
                return new PlainToTsQuery($query, $config);
        }
    }
public function defaultQueryMethod($query, $config)
    {
        switch (strtolower($this->config('search_using', 'plain'))) {
            case 'tsquery':
                return new ToTsQuery($query, $config);
            case 'phrasequery':
                return new PhraseToTsQuery($query, $config);
            case 'plainquery':
            default:
                return new PlainToTsQuery($query, $config);
        }
    }
public function defaultQueryMethod ( $ query , $ config ) { switch ( strtolower ( $ this -> config ( 'search_using' , 'plain' ) ) ) { case 'tsquery' : return new ToTsQuery ( $ query , $ config ) ; case 'phrasequery' : return new PhraseToTsQuery ( $ query , $ config ) ; case 'plainquery' : default : return new PlainToTsQuery ( $ query , $ config ) ; } }
Returns the default query method.

@param string $query
@param string $config
@return \ScoutEngines\Postgres\TsQuery\TsQueryable
Returns the default query method .