Guest User

Untitled

a guest
Jul 28th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. MacBook-Konstantin-Tumalevich:ipups userad$ cat config/development.sphinx.conf
  2. indexer
  3. {
  4. }
  5.  
  6. searchd
  7. {
  8. address = 127.0.0.1
  9. port = 3214
  10. log = /Users/userad/proj/ipups/log/searchd.log
  11. query_log = /Users/userad/proj/ipups/log/searchd.query.log
  12. pid_file = /Users/userad/proj/ipups/log/searchd.development.pid
  13. }
  14.  
  15. source announce_core_0
  16. {
  17. type = mysql
  18. sql_host = localhost
  19. sql_user = root
  20. sql_pass =
  21. sql_db = ipups_development2
  22. sql_query_pre = SET NAMES utf8
  23. sql_query = SELECT `announces`.`id` * 4 + 0 AS `id` , CAST(`announces`.`title` AS CHAR) AS `title`, CAST(`announces`.`content` AS CHAR) AS `content`, `announces`.`id` AS `sphinx_internal_id`, 530628387 AS `class_crc`, '530628387' AS `subclass_crcs`, 0 AS `sphinx_deleted`, IFNULL(`announces`.`title`, '') AS `title_sort` FROM `announces` WHERE `announces`.`id` >= $start AND `announces`.`id` <= $end GROUP BY `announces`.`id` ORDER BY NULL
  24. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `announces`
  25. sql_attr_uint = sphinx_internal_id
  26. sql_attr_uint = class_crc
  27. sql_attr_uint = sphinx_deleted
  28. sql_attr_str2ordinal = title_sort
  29. sql_attr_multi = uint subclass_crcs from field
  30. sql_query_info = SELECT * FROM `announces` WHERE `id` = (($id - 0) / 4)
  31. }
  32.  
  33. index announce_core
  34. {
  35. source = announce_core_0
  36. path = /Users/userad/proj/ipups/db/sphinx/development/announce_core
  37. charset_type = utf-8
  38. }
  39.  
  40. index announce
  41. {
  42. type = distributed
  43. local = announce_core
  44. }
  45.  
  46. source article_core_0
  47. {
  48. type = mysql
  49. sql_host = localhost
  50. sql_user = root
  51. sql_pass =
  52. sql_db = ipups_development2
  53. sql_query_pre = SET NAMES utf8
  54. sql_query = SELECT `articles`.`id` * 4 + 1 AS `id` , CAST(`articles`.`title` AS CHAR) AS `title`, CAST(`articles`.`content` AS CHAR) AS `content`, `articles`.`id` AS `sphinx_internal_id`, 3448190970 AS `class_crc`, '3448190970' AS `subclass_crcs`, 0 AS `sphinx_deleted`, UNIX_TIMESTAMP(`articles`.`created_at`) AS `created_at`, UNIX_TIMESTAMP(`articles`.`updated_at`) AS `updated_at` FROM `articles` WHERE `articles`.`id` >= $start AND `articles`.`id` <= $end GROUP BY `articles`.`id` ORDER BY NULL
  55. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `articles`
  56. sql_attr_uint = sphinx_internal_id
  57. sql_attr_uint = class_crc
  58. sql_attr_uint = sphinx_deleted
  59. sql_attr_timestamp = created_at
  60. sql_attr_timestamp = updated_at
  61. sql_attr_multi = uint subclass_crcs from field
  62. sql_query_info = SELECT * FROM `articles` WHERE `id` = (($id - 1) / 4)
  63. }
  64.  
  65. index article_core
  66. {
  67. source = article_core_0
  68. path = /Users/userad/proj/ipups/db/sphinx/development/article_core
  69. charset_type = utf-8
  70. }
  71.  
  72. index article
  73. {
  74. type = distributed
  75. local = article_core
  76. }
  77.  
  78. source contest_core_0
  79. {
  80. type = mysql
  81. sql_host = localhost
  82. sql_user = root
  83. sql_pass =
  84. sql_db = ipups_development2
  85. sql_query_pre = SET NAMES utf8
  86. sql_query = SELECT `contests`.`id` * 4 + 2 AS `id` , CAST(`contests`.`title` AS CHAR) AS `title`, CAST(`contests`.`content` AS CHAR) AS `content`, `contests`.`id` AS `sphinx_internal_id`, 3457443113 AS `class_crc`, '3457443113' AS `subclass_crcs`, 0 AS `sphinx_deleted`, IFNULL(`contests`.`title`, '') AS `title_sort` FROM `contests` WHERE `contests`.`id` >= $start AND `contests`.`id` <= $end GROUP BY `contests`.`id` ORDER BY NULL
  87. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `contests`
  88. sql_attr_uint = sphinx_internal_id
  89. sql_attr_uint = class_crc
  90. sql_attr_uint = sphinx_deleted
  91. sql_attr_str2ordinal = title_sort
  92. sql_attr_multi = uint subclass_crcs from field
  93. sql_query_info = SELECT * FROM `contests` WHERE `id` = (($id - 2) / 4)
  94. }
  95.  
  96. index contest_core
  97. {
  98. source = contest_core_0
  99. path = /Users/userad/proj/ipups/db/sphinx/development/contest_core
  100. charset_type = utf-8
  101. }
  102.  
  103. index contest
  104. {
  105. type = distributed
  106. local = contest_core
  107. }
  108.  
  109. source ihelpers_core_0
  110. {
  111. type = mysql
  112. sql_host = localhost
  113. sql_user = root
  114. sql_pass =
  115. sql_db = ipups_development2
  116. sql_query_pre = SET NAMES utf8
  117. sql_query = SELECT `ihelpers`.`id` * 4 + 3 AS `id` , CAST(`ihelpers`.`title` AS CHAR) AS `title`, CAST(`ihelpers`.`content` AS CHAR) AS `content`, `ihelpers`.`id` AS `sphinx_internal_id`, 510956077 AS `class_crc`, '510956077' AS `subclass_crcs`, 0 AS `sphinx_deleted`, IFNULL(`ihelpers`.`title`, '') AS `title_sort`, UNIX_TIMESTAMP(`ihelpers`.`created_at`) AS `created_at`, UNIX_TIMESTAMP(`ihelpers`.`updated_at`) AS `updated_at` FROM `ihelpers` WHERE `ihelpers`.`id` >= $start AND `ihelpers`.`id` <= $end GROUP BY `ihelpers`.`id` ORDER BY NULL
  118. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `ihelpers`
  119. sql_attr_uint = sphinx_internal_id
  120. sql_attr_uint = class_crc
  121. sql_attr_uint = sphinx_deleted
  122. sql_attr_timestamp = created_at
  123. sql_attr_timestamp = updated_at
  124. sql_attr_str2ordinal = title_sort
  125. sql_attr_multi = uint subclass_crcs from field
  126. sql_query_info = SELECT * FROM `ihelpers` WHERE `id` = (($id - 3) / 4)
  127. }
  128.  
  129. index ihelpers_core
  130. {
  131. source = ihelpers_core_0
  132. path = /Users/userad/proj/ipups/db/sphinx/development/ihelpers_core
  133. charset_type = utf-8
  134. }
  135.  
  136. index ihelpers
  137. {
  138. type = distributed
  139. local = ihelpers_core
  140. }
Add Comment
Please, Sign In to add comment