From 6407abbdc529dd4c52d39b83f8d564d18c21395f Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 9 Jan 2017 18:31:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=B2=20?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D1=8C=D1=82=D0=B0=20=D0=B8=D0=BD=D0=B4=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- sphinx.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index fa28ff7..75e550a 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,7 @@ io.on('connection', function(socket) const index = navigation.index || 0; const limit = navigation.limit || 10; let search = {}; - sphinx.query('SELECT * FROM `torrents_index` WHERE MATCH(?) LIMIT ?,?', [text, index, limit], function (error, rows, fields) { + sphinx.query('SELECT * FROM `torrents_index`,`torrents_index_delta` WHERE MATCH(?) LIMIT ?,?', [text, index, limit], function (error, rows, fields) { if(!rows) { callback(undefined) return; @@ -220,7 +220,7 @@ io.on('connection', function(socket) const index = navigation.index || 0; const limit = navigation.limit || 10; let search = {}; - sphinx.query('SELECT * FROM `files_index` WHERE MATCH(?) LIMIT ?,?', [text, index, limit], function (error, rows, fields) { + sphinx.query('SELECT * FROM `files_index`,`files_index_delta` WHERE MATCH(?) LIMIT ?,?', [text, index, limit], function (error, rows, fields) { if(!rows) { callback(undefined) return; diff --git a/sphinx.conf b/sphinx.conf index 20dbce7..6b2ef2e 100644 --- a/sphinx.conf +++ b/sphinx.conf @@ -55,7 +55,7 @@ source files_index_delta : files_index index files_index_delta : files_index { source = files_index_delta - path = /var/data/files.delta + path = /var/lib/sphinx/files.delta } source torrents_index @@ -106,7 +106,7 @@ source torrents_index_delta : torrents_index index torrents_index_delta : torrents_index { source = torrents_index_delta - path = /var/data/torrents.delta + path = /var/lib/sphinx/torrents.delta }