summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-16 16:41:32 +0400
committerAndrew Dolgov <[email protected]>2013-04-16 16:41:32 +0400
commit52803a0bfd315e375221c446f597f64ecbfb2aae (patch)
treed681209344a62531de074279541cdbdea7ef8905 /include/functions.php
parentb9863a153c4a9295c3ddd214c1c1d21aa4807221 (diff)
add SPHINX_SERVER
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
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,