123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- source doc
- {
- type = mysql
- sql_host = localhost
- sql_user = 111222
- sql_pass = 111222
- sql_db = 333333
- sql_port = 3306
- sql_sock = /tmp/mysql.sock
- sql_query_pre = SET NAMES utf8
- sql_query_pre = SET SESSION query_cache_type=OFF
- sql_query = SELECT id,cat_id,parent_cat_id,root_cat_id,doc_type,title,keywords,description,tags,thumb,ext_type_1,ext_type_2,ext_type_3,ext_type_4,ext_type_5,ext,page_num,vip_free,is_vip,is_free,is_badcom,is_badlogin,is_badvip,coin_price,status,is_new,is_hot,is_original,is_recommend,is_template,is_elected,views,favors,digs,comments,downs,sales,stars,is_delete,create_time,cat_ids,user_id,doc_type as doc_type1,doc_num FROM wz_doc_real where status=1 and is_delete=0 and id>=$start AND id<=$end
- sql_field_string = title
- sql_field_string = keywords
- sql_field_string = tags
- sql_field_string = description
- sql_field_string = thumb
- sql_attr_string = ext
- sql_attr_uint = page_num
- sql_attr_uint = views
- sql_attr_uint = favors
- sql_attr_uint = digs
- sql_attr_uint = comments
- sql_attr_uint = downs
- sql_attr_uint = sales
- sql_attr_uint = stars
- sql_attr_uint = coin_price
- sql_attr_uint = doc_type1
- sql_attr_timestamp = create_time
- sql_query_range = SELECT MIN(id),MAX(id) FROM wz_doc_real
- sql_range_step = 50000
- sql_ranged_throttle = 100
- }
- index attr_kvdoc
- {
- source = doc
- path = /usr/local/coreseek/var/data/attr_kvdoc
- docinfo = extern
- mlock = 0
- morphology = none
- min_word_len = 1
- charset_type = zh_cn.utf-8
- charset_dictpath = /usr/local/mmseg/etc/
- html_strip = 0
- }
- source news
- {
- type = mysql
- sql_host = localhost
- sql_user = 111222
- sql_pass = 111222
- sql_db = 333333
- sql_port = 3306
- sql_sock = /tmp/mysql.sock
- sql_query_pre = SET NAMES utf8
- sql_query_pre = SET SESSION query_cache_type=OFF
- sql_query = SELECT * FROM wz_news where status=1 and id>=$start AND id<=$end
- sql_field_string = title
- sql_field_string = keywords
- sql_field_string = description
- sql_attr_uint = views
- sql_attr_uint = favors
- sql_attr_uint = digs
- sql_attr_timestamp = create_time
- sql_query_range = SELECT MIN(id),MAX(id) FROM wz_news
- sql_range_step = 50000
- sql_ranged_throttle = 100
- }
- index attr_kvnews
- {
- source = news
- path = /usr/local/coreseek/var/data/attr_kvnews
- docinfo = extern
- mlock = 0
- morphology = none
- min_word_len = 1
- charset_type = zh_cn.utf-8
- charset_dictpath = /usr/local/mmseg/etc/
- html_strip = 0
- }
- indexer
- {
- mem_limit = 128M
- }
- searchd
- {
- listen = 9312
- listen = 9306:mysql41
- log = /usr/local/coreseek/var/log/searchd.log
- query_log = /usr/local/coreseek/var/log/query.log
- read_timeout = 5
- client_timeout = 300
- max_children = 30
- pid_file = /usr/local/coreseek/var/log/searchd.pid
- max_matches = 1000
- seamless_rotate = 1
- preopen_indexes = 1
- unlink_old = 1
- mva_updates_pool = 1M
- max_packet_size = 8M
- max_filters = 256
- max_filter_values = 4096
- max_batch_queries = 32
- }
|