From 52803a0bfd315e375221c446f597f64ecbfb2aae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 16:41:32 +0400 Subject: add SPHINX_SERVER --- include/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/functions.php') 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, -- cgit v1.2.3