mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
Added support for sphinx rt index
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -46,6 +46,8 @@ source base
|
||||
sql_attr_uint = attachments
|
||||
}
|
||||
|
||||
<?php if(RT == 0) { ?>
|
||||
|
||||
source delta : base
|
||||
{
|
||||
sql_query_pre = SET NAMES utf8mb4
|
||||
@ -89,6 +91,7 @@ source dailydelta : base
|
||||
sql_query_pre = SET NAMES utf8mb4
|
||||
sql_query = SELECT <?php print SELECT_FIELDS; ?> FROM sph_index WHERE id=-1
|
||||
}
|
||||
?>
|
||||
|
||||
source tag : base
|
||||
{
|
||||
@ -110,7 +113,7 @@ source note : base
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php if(RT == 0) { ?>
|
||||
index main1
|
||||
{
|
||||
source = main1
|
||||
@ -198,6 +201,7 @@ index delta1
|
||||
<?php } ?>
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
index tag1
|
||||
{
|
||||
@ -228,6 +232,27 @@ index note1
|
||||
<?php print NGRAM_CONFIG; ?>
|
||||
}
|
||||
|
||||
<?php if(RT == 1) { ?>
|
||||
index piler1
|
||||
{
|
||||
type = rt
|
||||
path = /var/piler/sphinx/piler1
|
||||
rt_mem_limit = 128M
|
||||
rt_field = sender
|
||||
rt_field = rcpt
|
||||
rt_field = senderdomain
|
||||
rt_field = rcptdomain
|
||||
rt_field = subject
|
||||
rt_field = body
|
||||
rt_field = attachment_types
|
||||
rt_attr_bigint = arrived
|
||||
rt_attr_bigint = sent
|
||||
rt_attr_uint = size
|
||||
rt_attr_uint = direction
|
||||
rt_attr_uint = folder
|
||||
rt_attr_uint = attachments
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
indexer
|
||||
{
|
||||
@ -240,7 +265,12 @@ searchd
|
||||
listen = 127.0.0.1:9312
|
||||
listen = 127.0.0.1:9306:mysql41
|
||||
log = /dev/null
|
||||
binlog_path =
|
||||
binlog_path = /var/piler/sphinx
|
||||
binlog_max_log_size = 16M
|
||||
binlog_flush = 2
|
||||
<?php if(RT == 1) { ?>
|
||||
rt_flush_period = 300
|
||||
<?php } ?>
|
||||
##query_log =
|
||||
read_timeout = 5
|
||||
max_children = 30
|
||||
|
Reference in New Issue
Block a user