mdserver-web/plugins/sphinx/tpl/simdht.conf

60 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2019-01-21 22:04:35 -05:00
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#
indexer
{
2019-01-22 02:00:30 -05:00
mem_limit = 32M
2019-01-21 22:04:35 -05:00
}
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}/index/binlog
}
2019-01-22 02:00:30 -05:00
source search_hash
{
type = mysql
sql_host = 127.0.0.1
sql_user = ssbc
sql_pass = ssbc
sql_db = ssbc
sql_port = 3306 # optional, default is 3306
sql_query_range = SELECT min(id), max(id) FROM search_hash
sql_range_step = 1000
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\
2019-04-22 01:46:13 -04:00
FROM search_hash where id >= $start AND id <= $end AND is_has=1
2019-01-22 02:00:30 -05:00
sql_attr_bigint = length
sql_attr_timestamp = create_time
sql_attr_timestamp = last_seen
sql_attr_uint = category
}
index search_hash
{
source = search_hash
2019-03-20 04:49:17 -04:00
path = {$SERVER_APP}/index/db/search_hash/index
2019-01-22 02:00:30 -05:00
ngram_len = 1
ngram_chars = U+3000..U+2FA1F
}