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 }