From a6acecb8c286a4c1bc427163d0a9b411fb0dcfe0 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 26 Jun 2024 17:49:26 +0800 Subject: [PATCH] update --- plugins/sphinx/tool_cron.py | 2 +- plugins/sphinx/tpl/none.conf | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100755 plugins/sphinx/tpl/none.conf diff --git a/plugins/sphinx/tool_cron.py b/plugins/sphinx/tool_cron.py index f11b211a2..2e566c4dc 100644 --- a/plugins/sphinx/tool_cron.py +++ b/plugins/sphinx/tool_cron.py @@ -28,7 +28,7 @@ def getServerDir(): def getTaskConf(): - conf = getServerDir() + "/task_config.json" + conf = getServerDir() + "/cron_config.json" return conf diff --git a/plugins/sphinx/tpl/none.conf b/plugins/sphinx/tpl/none.conf new file mode 100755 index 000000000..de9e5f270 --- /dev/null +++ b/plugins/sphinx/tpl/none.conf @@ -0,0 +1,28 @@ +# +# Minimal Sphinx configuration sample (clean, simple, functional) +# + + +searchd +{ + listen = 9312 + listen = 9306:mysql41 + log = {$SERVER_APP}/index/searchd.log + query_log = {$SERVER_APP}/index/query.log + pid_file = {$SERVER_APP}/index/searchd.pid + #workers = threads # for RT to work + binlog_path = {$SERVER_APP}/index/binlog + read_timeout = 5 + max_children = 0 + seamless_rotate = 1 + preopen_indexes = 1 + unlink_old = 1 +} + +index mydocs +{ + type = rt + path = {$SERVER_APP}/bin/doc + rt_field = title + rt_attr_json = j +} \ No newline at end of file