diff --git a/plugins/sphinx/tpl/qbittorrent.conf b/plugins/sphinx/tpl/qbittorrent.conf new file mode 100755 index 000000000..1401737bd --- /dev/null +++ b/plugins/sphinx/tpl/qbittorrent.conf @@ -0,0 +1,54 @@ +# +# Minimal Sphinx configuration sample (clean, simple, functional) +# + +indexer +{ + mem_limit = 32M +} + +searchd +{ + listen = 9312 + listen = 9306:mysql41 + log = {$SERVER_APP}/index/searchd.log + query_log = {$SERVER_APP}/index/query.log + read_timeout = 5 + max_children = 0 + pid_file = {$SERVER_APP}/index/searchd.pid + seamless_rotate = 1 + preopen_indexes = 1 + unlink_old = 1 + #workers = threads # for RT to work + binlog_path = {$SERVER_APP}/binlog +} + +source qbittorrent +{ + type = mysql + + sql_host = 127.0.0.1 + sql_user = qbittorrent + sql_pass = qbittorrent + sql_db = qbittorrent + sql_port = 3306 # optional, default is 3306 + + sql_query_range = SELECT min(id), max(id) FROM pl_hash_list + sql_range_step = 1000 + + sql_query_pre = SET NAMES utf8 + sql_query = SELECT id, name, UNIX_TIMESTAMP(create_time) AS create_time \ + FROM pl_hash_list where status=0 id >= $start AND id <= $end + + sql_attr_timestamp = create_time +} + + +index qbittorrent +{ + source = sp_video + path = {$SERVER_APP}/index/db/qbittorrent/index + + ngram_len = 1 + ngram_chars = U+3000..U+2FA1F +}