################################### PHPCMS ############################################
source cc_phpcms
{
type = mysql
sql_host = 172.26.11.75 #此处请改成您的真实配置
sql_user = phpcms #此处请改成您的真实配置
sql_pass = 123456 #此处请改成您的真实配置
sql_db = phpcms #此处请改成您的真实配置
sql_port= 3306 #此处请改成您的真实配置
sql_query_pre = SET SESSION query_cache_type=OFF
sql_query_pre = SET character_set_client =
'gbk'
sql_query_pre = SET character_set_connection =
'gbk'
sql_query_pre = SET character_set_results =
'utf8'
sql_query = SELECT `id`,`catid`,`typeid`,`title`,`status`,`updatetime` from `i_news` #此处请改成您的真实配置
sql_range_step = 1000
sql_attr_timestamp = updatetime
sql_attr_uint = catid
sql_attr_uint = typeid
sql_attr_uint = status
sql_query_post =
sql_ranged_throttle= 0
}
index cc_phpcms
{
source = cc_phpcms
path = /dev/shm/cc_phpcms #放这里比较好,因为这里是linux的内存区!
docinfo = extern
mlock = 0
enable_star = 1
morphology = none
stopwords =
min_word_len = 1
charset_dictpath = /usr/local/mmseg3/etc/ #注意此处
charset_type = zh_cn.utf-8 #注意此处
html_strip = 1
html_remove_elements = style, script
html_index_attrs = img=alt,title; a=title;
}
#################################### SETTING ############################################
indexer
{
mem_limit = 300M
}
searchd
{
# address = 0.0.0.0
#listen = 3312
#listen = 9312
#listen = 9306:mysql41
port = 3312
log = /usr/local/coreseek/
var
/log/searchd.log
query_log = /usr/local/coreseek/
var
/log/query.log
read_timeout = 5
max_children = 30
pid_file = /usr/local/coreseek/
var
/log/searchd.pid
max_matches = 1000
seamless_rotate = 1
}