Guest User

Untitled

a guest
Nov 25th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. indexer
  2. {
  3. }
  4.  
  5. searchd
  6. {
  7. listen = 127.0.0.1:9312
  8. log = /home/vlad/ruby/humorial/log/searchd.log
  9. query_log = /home/vlad/ruby/humorial/log/searchd.query.log
  10. pid_file = /home/vlad/ruby/humorial/log/searchd.development.pid
  11. }
  12.  
  13. source blog_core_0
  14. {
  15. type = mysql
  16. sql_host = localhost
  17. sql_user = root
  18. sql_pass =
  19. sql_db = humorial_development
  20. sql_query_pre = SET NAMES utf8
  21. sql_query_pre = SET TIME_ZONE = '+0:00'
  22. sql_query = SELECT SQL_NO_CACHE `blogs`.`id` * CAST(3 AS SIGNED) + 0 AS `id` , `blogs`.`html_text` AS `html_text`, `blogs`.`short_descr` AS `short_descr`, `blogs`.`caption` AS `caption`, `blogs`.`id` AS `sphinx_internal_id`, 0 AS `sphinx_deleted`, 1613233789 AS `class_crc` FROM `blogs` WHERE (`blogs`.`id` >= $start AND `blogs`.`id` <= $end) GROUP BY `blogs`.`id`, `blogs`.`html_text`, `blogs`.`short_descr`, `blogs`.`caption`, `blogs`.`id` ORDER BY NULL
  23. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `blogs`
  24. sql_attr_uint = sphinx_internal_id
  25. sql_attr_uint = sphinx_deleted
  26. sql_attr_uint = class_crc
  27. sql_query_info = SELECT * FROM `blogs` WHERE `id` = (($id - 0) / 3)
  28. }
  29.  
  30. index blog_core
  31. {
  32. source = blog_core_0
  33. path = /home/vlad/ruby/humorial/db/sphinx/development/blog_core
  34. charset_type = utf-8
  35. }
  36.  
  37. index blog
  38. {
  39. type = distributed
  40. local = blog_core
  41. }
  42.  
  43. source blog_comment_core_0
  44. {
  45. type = mysql
  46. sql_host = localhost
  47. sql_user = root
  48. sql_pass =
  49. sql_db = humorial_development
  50. sql_query_pre = SET NAMES utf8
  51. sql_query_pre = SET TIME_ZONE = '+0:00'
  52. sql_query = SELECT SQL_NO_CACHE `blog_comments`.`id` * CAST(3 AS SIGNED) + 1 AS `id` , `blog_comments`.`caption` AS `caption`, `blog_comments`.`text` AS `text`, `blog_comments`.`id` AS `sphinx_internal_id`, 0 AS `sphinx_deleted`, 2972296805 AS `class_crc` FROM `blog_comments` WHERE (`blog_comments`.`id` >= $start AND `blog_comments`.`id` <= $end) GROUP BY `blog_comments`.`id`, `blog_comments`.`caption`, `blog_comments`.`text`, `blog_comments`.`id` ORDER BY NULL
  53. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `blog_comments`
  54. sql_attr_uint = sphinx_internal_id
  55. sql_attr_uint = sphinx_deleted
  56. sql_attr_uint = class_crc
  57. sql_query_info = SELECT * FROM `blog_comments` WHERE `id` = (($id - 1) / 3)
  58. }
  59.  
  60. index blog_comment_core
  61. {
  62. source = blog_comment_core_0
  63. path = /home/vlad/ruby/humorial/db/sphinx/development/blog_comment_core
  64. charset_type = utf-8
  65. }
  66.  
  67. index blog_comment
  68. {
  69. type = distributed
  70. local = blog_comment_core
  71. }
  72.  
  73. source matherial_core_0
  74. {
  75. type = mysql
  76. sql_host = localhost
  77. sql_user = root
  78. sql_pass =
  79. sql_db = humorial_development
  80. sql_query_pre = SET NAMES utf8
  81. sql_query_pre = SET TIME_ZONE = '+0:00'
  82. sql_query = SELECT SQL_NO_CACHE `matherials`.`id` * CAST(3 AS SIGNED) + 2 AS `id` , `matherials`.`body` AS `body`, `matherials`.`phrase` AS `phrase`, `matherials`.`id` AS `sphinx_internal_id`, 0 AS `sphinx_deleted`, 3323281092 AS `class_crc` FROM `matherials` WHERE (`matherials`.`id` >= $start AND `matherials`.`id` <= $end) GROUP BY `matherials`.`id`, `matherials`.`body`, `matherials`.`phrase`, `matherials`.`id` ORDER BY NULL
  83. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `matherials`
  84. sql_attr_uint = sphinx_internal_id
  85. sql_attr_uint = sphinx_deleted
  86. sql_attr_uint = class_crc
  87. sql_query_info = SELECT * FROM `matherials` WHERE `id` = (($id - 2) / 3)
  88. }
  89.  
  90. index matherial_core
  91. {
  92. source = matherial_core_0
  93. path = /home/vlad/ruby/humorial/db/sphinx/development/matherial_core
  94. charset_type = utf-8
  95. }
  96.  
  97. index matherial
  98. {
  99. type = distributed
  100. local = matherial_core
  101. }
Add Comment
Please, Sign In to add comment