pull/109/head
Mr Chen 6 years ago
parent 18cf7855b7
commit 4562112467
  1. 8
      plugins/sphinx/tpl/simdht_delta.conf
  2. 2
      route/static/app/public.js

@ -33,10 +33,12 @@ source search_hash
sql_db = ssbc
sql_port = 33061 # optional, default is 3306
sql_query_pre = UPDATE sph_counter SET max_doc_id=(SELECT MAX(id) FROM search_hash) where counter_id=1
sql_query_range = SELECT min(id), max(id) FROM search_hash
sql_range_step = 1000
sql_range_step = 1000
sql_query_pre = SET NAMES utf8
sql_query_pre = SET NAMES utf8
sql_query = \
SELECT id, name, CRC32(category) AS category, length, UNIX_TIMESTAMP(create_time) AS create_time, UNIX_TIMESTAMP(last_seen) AS last_seen\
FROM search_hash where id >= $start AND id <= $end
@ -49,12 +51,14 @@ source search_hash
source search_hash_delta : search_hash
{
sql_query_range = SELECT (SELECT max_doc_id FROM `sph_counter` where counter_id=1) as min, (SELECT max(id) FROM search_hash) as max
sql_query_pre = SET NAMES utf8
sql_query = SELECT id, name, CRC32(category) AS category, length, UNIX_TIMESTAMP(create_time) AS create_time, UNIX_TIMESTAMP(last_seen) AS last_seen FROM search_hash where id >= $start AND id <= $end
sql_attr_bigint = length
sql_attr_timestamp = create_time
sql_attr_timestamp = last_seen
sql_attr_uint = category
sql_query_post = UPDATE sph_counter SET max_doc_id=(SELECT MAX(id) FROM search_hash) where counter_id=1
}

@ -1377,7 +1377,7 @@ function pluginConfigTpl(_name, version, func, config_tpl_func, read_config_tpl_
var con = '<p style="color: #666; margin-bottom: 7px">提示Ctrl+F 搜索关键字Ctrl+G 查找下一个Ctrl+S 保存Ctrl+Shift+R 查找替换!</p>\
<select id="config_tpl" class="bt-input-text mr20" style="width:30%;margin-bottom: 3px;"><option value="0">选择</option></select>\
<select id="config_tpl" class="bt-input-text mr20" style="width:30%;margin-bottom: 3px;"><option value="0">选择</option></select>\
<textarea class="bt-input-text" style="height: 320px; line-height:18px;" id="textBody"></textarea>\
<button id="onlineEditFileBtn" class="btn btn-success btn-sm" style="margin-top:10px;">保存</button>\
<ul class="help-info-text c7 ptb15">\

Loading…
Cancel
Save