1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 23:01:29 +00:00

add SPHINX_SERVER

This commit is contained in:
Andrew Dolgov
2013-04-16 16:41:32 +04:00
parent b9863a153c
commit 52803a0bfd
3 changed files with 8 additions and 3 deletions

View File

@@ -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,