FoolCode/SphinxQL-Query-Builder — pull request #16 by ashon-ikon (2014-06-19 14:53:57+00:00)
Title: Added option of matching using quorum syntax in Match query. Allowed more parameters to be passed to DB connection

I added the option of matching using [quorum](http://sphinxsearch.com/docs/current.html#extended-syntax) syntax in Match query.
>quorum matching operator:
>"the world is a wonderful place"/0.6
```php
/**
* Query escape types:
*
* All, If all potential active characters should be escaped
* Half, Allow the following characters: '-', '|', '"'.
* None, if the query value should be treated literally
*/
const QUERY_ESCAPE_ALL = 1;
const QUERY_ESCAPE_HALF = 2;
const QUERY_ESCAPE_NONE = 3;
// ...
$result = SphinxQL::forge()->select()
->from('rt')
->match('content', '"orem ipsum dolor sit amet"/0.8', SphinxQL::QUERY_ESCAPE_NONE) // Match Quorum literarily
->execute();
```

I allowed more parameters to be passed to DB connection.
```php
// create a new connection
$conn_params = array(
'host' => '127.0.0.1',
'port' => 9307,
'username' => '',
'password' => '',
'socket' => '',
);
$this->connection->setConnectionParams($conn_params);
```

This is more desired in places where SphinxD runs on different credentials. Appropriate unit tests were added were appropriate.

- Ashon