kiivokms.conf 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. source doc
  2. {
  3. type = mysql
  4. sql_host = localhost
  5. sql_user = 111222
  6. sql_pass = 111222
  7. sql_db = 333333
  8. sql_port = 3306
  9. sql_sock = /tmp/mysql.sock
  10. sql_query_pre = SET NAMES utf8
  11. sql_query_pre = SET SESSION query_cache_type=OFF
  12. 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
  13. sql_field_string = title
  14. sql_field_string = keywords
  15. sql_field_string = tags
  16. sql_field_string = description
  17. sql_field_string = thumb
  18. sql_attr_string = ext
  19. sql_attr_uint = page_num
  20. sql_attr_uint = views
  21. sql_attr_uint = favors
  22. sql_attr_uint = digs
  23. sql_attr_uint = comments
  24. sql_attr_uint = downs
  25. sql_attr_uint = sales
  26. sql_attr_uint = stars
  27. sql_attr_uint = coin_price
  28. sql_attr_uint = doc_type1
  29. sql_attr_timestamp = create_time
  30. sql_query_range = SELECT MIN(id),MAX(id) FROM wz_doc_real
  31. sql_range_step = 50000
  32. sql_ranged_throttle = 100
  33. }
  34. index attr_kvdoc
  35. {
  36. source = doc
  37. path = /usr/local/coreseek/var/data/attr_kvdoc
  38. docinfo = extern
  39. mlock = 0
  40. morphology = none
  41. min_word_len = 1
  42. charset_type = zh_cn.utf-8
  43. charset_dictpath = /usr/local/mmseg/etc/
  44. html_strip = 0
  45. }
  46. source news
  47. {
  48. type = mysql
  49. sql_host = localhost
  50. sql_user = 111222
  51. sql_pass = 111222
  52. sql_db = 333333
  53. sql_port = 3306
  54. sql_sock = /tmp/mysql.sock
  55. sql_query_pre = SET NAMES utf8
  56. sql_query_pre = SET SESSION query_cache_type=OFF
  57. sql_query = SELECT * FROM wz_news where status=1 and id>=$start AND id<=$end
  58. sql_field_string = title
  59. sql_field_string = keywords
  60. sql_field_string = description
  61. sql_attr_uint = views
  62. sql_attr_uint = favors
  63. sql_attr_uint = digs
  64. sql_attr_timestamp = create_time
  65. sql_query_range = SELECT MIN(id),MAX(id) FROM wz_news
  66. sql_range_step = 50000
  67. sql_ranged_throttle = 100
  68. }
  69. index attr_kvnews
  70. {
  71. source = news
  72. path = /usr/local/coreseek/var/data/attr_kvnews
  73. docinfo = extern
  74. mlock = 0
  75. morphology = none
  76. min_word_len = 1
  77. charset_type = zh_cn.utf-8
  78. charset_dictpath = /usr/local/mmseg/etc/
  79. html_strip = 0
  80. }
  81. indexer
  82. {
  83. mem_limit = 128M
  84. }
  85. searchd
  86. {
  87. listen = 9312
  88. listen = 9306:mysql41
  89. log = /usr/local/coreseek/var/log/searchd.log
  90. query_log = /usr/local/coreseek/var/log/query.log
  91. read_timeout = 5
  92. client_timeout = 300
  93. max_children = 30
  94. pid_file = /usr/local/coreseek/var/log/searchd.pid
  95. max_matches = 1000
  96. seamless_rotate = 1
  97. preopen_indexes = 1
  98. unlink_old = 1
  99. mva_updates_pool = 1M
  100. max_packet_size = 8M
  101. max_filters = 256
  102. max_filter_values = 4096
  103. max_batch_queries = 32
  104. }