src/Connection.php
function newQuery($connection)
    {

        $config = $this->config["connections"][$connection];

        $query = new Query($this->connections[$connection]);

        if (array_key_exists("index", $config) and $config["index"] != "") {
            $query->index($config["index"]);
        }

        return $query;
    }
function newQuery($connection)
    {

        $config = $this->config["connections"][$connection];

        $query = new Query($this->connections[$connection]);

        if (array_key_exists("index", $config) and $config["index"] != "") {
            $query->index($config["index"]);
        }

        return $query;
    }
function newQuery ( $ connection ) { $ config = $ this -> config [ "connections" ] [ $ connection ] ; $ query = new Query ( $ this -> connections [ $ connection ] ) ; if ( array_key_exists ( "index" , $ config ) and $ config [ "index" ] != "" ) { $ query -> index ( $ config [ "index" ] ) ; } return $ query ; }
route the request to the query class
@param $connection
@return Query
route the request to the query class