поиск в дельта индексе
This commit is contained in:
4
index.js
4
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;
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user