diff options
author | Andrew Dolgov <[email protected]> | 2013-04-16 16:41:32 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-16 16:41:32 +0400 |
commit | 52803a0bfd315e375221c446f597f64ecbfb2aae (patch) | |
tree | d681209344a62531de074279541cdbdea7ef8905 /include/functions.php | |
parent | b9863a153c4a9295c3ddd214c1c1d21aa4807221 (diff) |
add SPHINX_SERVER
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 87eb3d6a9..659950be0 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3824,7 +3824,9 @@ $sphinxClient = new SphinxClient(); - $sphinxClient->SetServer('localhost', 9312); + $sphinxpair = explode(":", SPHINX_SERVER, 2); + + $sphinxClient->SetServer($sphinxpair[0], $sphinxpair[1]); $sphinxClient->SetConnectTimeout(1); $sphinxClient->SetFieldWeights(array('title' => 70, 'content' => 30, |