kurokikaze/limestone — Issue #23: Suggestion to make Sphinx object with constants accessible
Author: darklow
Created: 2012-01-13 14:03:11+00:00
State: open

I noticed you have Sphinx object with all the constants defined in SphinxClient class.
Why not make it accessible from outside?
So we can use it while configuring, becaouse who can remember what these 0 and 1 means :)

This is how i did it in limestone.js:

```js
self.Sphinx = Sphinx;
```

And while configuring my query now i can use them:

```js
var Sphinx = limestone.Sphinx;
var query_config =
{
'mode': Sphinx.searchMode.ALL,
'ranker': Sphinx.rankingMode.MATCHANY,
...
```