From dc3de701f5babd459eb6f11614ce9efcb45fcd28 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 27 Aug 2022 19:23:21 +0200 Subject: [PATCH] Added rt support for manticore.conf Signed-off-by: Janos SUTO --- etc/manticore.conf.in | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/etc/manticore.conf.in b/etc/manticore.conf.in index ec24f12e..3f021446 100755 --- a/etc/manticore.conf.in +++ b/etc/manticore.conf.in @@ -14,6 +14,8 @@ define('CHARSET_TABLE', "0..9, english, _, \ define('SELECT_FIELDS', 'id, `from` as sender, `to` as rcpt, `fromdomain` as senderdomain, `todomain` as rcptdomain, `subject`, `arrived`, `sent`, `body`, `size`, `direction`, `folder`, `attachments`, `attachment_types`'); +define('RT', 0); + ?> # @@ -33,6 +35,8 @@ source base sql_attr_uint = attachments } + + source delta : base { sql_query_pre = SET NAMES utf8mb4 @@ -177,6 +181,35 @@ index note1 } + + +index note1 +{ + type = rt + rt_mem_limit = 8M + + path = /var/piler/manticore/note1 + rt_field = note + stored_fields = note + rt_attr_bigint = iid + rt_attr_uint = uid +} + +index tag1 +{ + type = rt + rt_mem_limit = 8M + + path = /var/piler/manticore/tag1 + rt_field = tag + stored_fields = tag + rt_attr_bigint = iid + rt_attr_uint = uid +} + + + + indexer { mem_limit = 256M @@ -188,7 +221,9 @@ searchd listen = 127.0.0.1:9312 listen = 127.0.0.1:9306:mysql41 log = /var/piler/manticore/manticore.log - binlog_path = /var/piler/manticore/ + binlog_max_log_size = 256M + binlog_path = /var/piler/manticore + binlog_flush = 2 query_log = /var/piler/manticore/query.log network_timeout = 5 pid_file = /var/run/piler/searchd.pid @@ -196,4 +231,8 @@ searchd preopen_indexes = 1 unlink_old = 1 thread_stack = 512k + + rt_flush_period = 300 + + }