поиск в дельта индексе

This commit is contained in:
Alexey Kasyanchuk
2017-01-09 18:31:44 +03:00
parent b86f70ed7d
commit 6407abbdc5
2 changed files with 4 additions and 4 deletions

View File

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

View File

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