Advertisement
Guest User

Untitled

a guest
Feb 8th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. source source_phpbb_1sqh9wuud70fuxy8_main
  2. {
  3. type = mysql # mysql or pgsql
  4. sql_host = localhost # SQL server host sphinx connects to
  5. sql_user = phpbb
  6. sql_pass = {Your database passwd}
  7. sql_db = phpbb
  8. sql_port = # optional, default is 3306 for mysql and 5432 for pgsql
  9. sql_query_pre = SET NAMES 'utf8'
  10. sql_query_pre = UPDATE phpbb_sphinx SET max_doc_id = (SELECT MAX(post_id) FROM phpbb_posts) WHERE counter_id = 1
  11. sql_query_range = SELECT MIN(post_id), MAX(post_id) FROM phpbb_posts
  12. sql_range_step = 5000
  13. sql_query = SELECT \
  14. p.post_id AS id, \
  15. p.forum_id, \
  16. p.topic_id, \
  17. p.poster_id, \
  18. p.post_visibility, \
  19. CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post, \
  20. p.post_time, \
  21. p.post_subject, \
  22. p.post_subject as title, \
  23. p.post_text as data, \
  24. t.topic_last_post_time, \
  25. 0 as deleted \
  26. FROM phpbb_posts p, phpbb_topics t \
  27. WHERE \
  28. p.topic_id = t.topic_id \
  29. AND p.post_id >= $start AND p.post_id <= $end
  30. sql_query_post =
  31. sql_query_post_index = UPDATE phpbb_sphinx SET max_doc_id = $maxid WHERE counter_id = 1
  32. sql_attr_uint = forum_id
  33. sql_attr_uint = topic_id
  34. sql_attr_uint = poster_id
  35. sql_attr_uint = post_visibility
  36. sql_attr_bool = topic_first_post
  37. sql_attr_bool = deleted
  38. sql_attr_timestamp = post_time
  39. sql_attr_timestamp = topic_last_post_time
  40. sql_attr_string = post_subject
  41. }
  42. source source_phpbb_1sqh9wuud70fuxy8_delta : source_phpbb_1sqh9wuud70fuxy8_main
  43. {
  44. sql_query_pre = SET NAMES 'utf8'
  45. sql_query_range =
  46. sql_range_step =
  47. sql_query = SELECT \
  48. p.post_id AS id, \
  49. p.forum_id, \
  50. p.topic_id, \
  51. p.poster_id, \
  52. p.post_visibility, \
  53. CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post, \
  54. p.post_time, \
  55. p.post_subject, \
  56. p.post_subject as title, \
  57. p.post_text as data, \
  58. t.topic_last_post_time, \
  59. 0 as deleted \
  60. FROM phpbb_posts p, phpbb_topics t \
  61. WHERE \
  62. p.topic_id = t.topic_id \
  63. AND p.post_id >= ( SELECT max_doc_id FROM phpbb_sphinx WHERE counter_id=1 )
  64. sql_query_post_index =
  65. }
  66. index index_phpbb_1sqh9wuud70fuxy8_main
  67. {
  68. path = /var/lib/manticore/dataindex_phpbb_1sqh9wuud70fuxy8_main
  69. source = source_phpbb_1sqh9wuud70fuxy8_main
  70. morphology = stem_en, icu_chinese
  71. stopwords = zh
  72. wordforms = # optional, specify path to wordforms file. See ./docs/sphinx_wordforms.txt for example
  73. exceptions = # optional, specify path to exceptions file. See ./docs/sphinx_exceptions.txt for example
  74. min_word_len = 1
  75. charset_table = 0..9, cjk, english, _
  76. min_prefix_len = 3 # Minimum number of characters for wildcard searches by prefix (min 1). Default is 3. If specified, set min_infix_len to 0
  77. min_infix_len = 0 # Minimum number of characters for wildcard searches by infix (min 2). If specified, set min_prefix_len to 0
  78. html_strip = 1
  79. index_exact_words = 1 # Set to 1 to enable exact search operator. Requires wordforms or morphology
  80. blend_chars = U+23, U+24, U+25, U+26, U+40
  81. }
  82. index index_phpbb_1sqh9wuud70fuxy8_delta : index_phpbb_1sqh9wuud70fuxy8_main
  83. {
  84. path = /var/lib/manticore/dataindex_phpbb_1sqh9wuud70fuxy8_delta
  85. source = source_phpbb_1sqh9wuud70fuxy8_delta
  86. }
  87. indexer
  88. {
  89. mem_limit = 1024M
  90. }
  91. searchd
  92. {
  93. listen = 0.0.0.0:9308
  94. log = /var/lib/manticore/searchd.log
  95. query_log = /var/lib/manticore/manticore-query.log
  96. network_timeout = 5
  97. pid_file = /var/lib/manticore/datasearchd.pid
  98. binlog_path = /var/lib/manticore/data
  99. telemetry = 0
  100. }
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement