밑에 내용은 더 있지만 실제 이렇게 하면 오류가 나는데요
하나씩 다 추가해주는건 아닌듯하네요
source g5_write_ww1
{
type = mysql
sql_host = 127.0.0.1
sql_user = root
sql_pass = aaw
sql_db = gg
sql_port = 3306 # optional, default is 3306
#sql_sock = /tmp/mysql.sock
sql_query = SELECT wr_id id, 'ww1' bo_table, wr_id, wr_parent, ca_name, wr_subject, wr_content, mb_id, wr_name, wr_ip, wr_is_comment, UNIX_TIMESTAMP(wr_datetime) AS wr_datetime FROM g5_write_ww1 where wr_is_comment=0
sql_attr_string = ca_name
sql_field_string = wr_subject
sql_field_string = wr_content
sql_field_string = bo_table
sql_attr_uint = wr_id
sql_attr_uint = wr_parent
sql_attr_uint = wr_is_comment
sql_attr_timestamp = wr_datetime
}
index gg
{
source = g5_write_ww1
path = /var/lib/sphinx/gg
docinfo = extern
#morphology = stem_en
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F
ngram_len = 1
min_word_len = 1
#enable_star = 0
#min_prefix_len = 3
min_infix_len = 1
min_prefix_len = 0
ngram_chars = U+4E00..U+9FBB, U+3400..U+4DB5, U+20000..U+2A6D6, U+FA0E, U+FA0F, U+FA11, U+FA13, U+FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27, U+FA28, U+FA29, U+3105..U+312C, U+31A0..U+31B7, U+3041, U+3043, U+3045, U+3047, U+3049, U+304B, U+304D, U+304F, U+3051, U+3053, U+3055, U+3057, U+3059, U+305B, U+305D, U+305F, U+3061, U+3063, U+3066, U+3068, U+306A..U+306F, U+3072, U+3075, U+3078, U+307B, U+307E..U+3083, U+3085, U+3087, U+3089..U+308E, U+3090..U+3093, U+30A1, U+30A3, U+30A5, U+30A7, U+30A9, U+30AD, U+30AF, U+30B3, U+30B5, U+30BB, U+30BD, U+30BF, U+30C1, U+30C3, U+30C4, U+30C6, U+30CA, U+30CB, U+30CD, U+30CE, U+30DE, U+30DF, U+30E1, U+30E2, U+30E3, U+30E5, U+30E7, U+30EE, U+30F0..U+30F3, U+30F5, U+30F6, U+31F0, U+31F1, U+31F2, U+31F3, U+31F4, U+31F5, U+31F6, U+31F7, U+31F8, U+31F9, U+31FA, U+31FB, U+31FC, U+31FD, U+31FE, U+31FF, U+AC00..U+D7A3, U+1100..U+1159, U+1161..U+11A2, U+11A8..U+11F9, U+A000..U+A48C, U+A492..U+A4C6
}
index ww1rt
{
type = rt
rt_mem_limit = 128M
path = /var/lib/sphinx/ww1rt
rt_field = title
rt_field = content
rt_attr_uint = gid
}
indexer
{
mem_limit = 128M
}
searchd
{
listen = 9312
listen = 9306:mysql41
log = /var/log/sphinx/searchd.log
query_log = /var/log/sphinx/query.log
read_timeout = 5
max_children = 30
pid_file = /var/run/sphinx/searchd.pid
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = threads # for RT to work
binlog_path = /var/lib/sphinx/
}
source g5_write_ww2
{
type = mysql
sql_host = 127.0.0.1
sql_user = root
sql_pass = aaw
sql_db = gg
sql_port = 3306 # optional, default is 3306
#sql_sock = /tmp/mysql.sock
sql_query = SELECT wr_id id, 'ww2' bo_table, wr_id, wr_parent, ca_name, wr_subject, wr_content, mb_id, wr_name, wr_ip, wr_is_comment, UNIX_TIMESTAMP(wr_datetime) AS wr_datetime FROM g5_write_ww2 where wr_is_comment=0
sql_attr_string = ca_name
sql_field_string = wr_subject
sql_field_string = wr_content
sql_field_string = bo_table
sql_attr_uint = wr_id
sql_attr_uint = wr_parent
sql_attr_uint = wr_is_comment
sql_attr_timestamp = wr_datetime
}
index gg
{
source = g5_write_ww2
path = /var/lib/sphinx/gg
docinfo = extern
#morphology = stem_en
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F
ngram_len = 1
min_word_len = 1
#enable_star = 0
#min_prefix_len = 3
min_infix_len = 1
min_prefix_len = 0