Guest User

Untitled

a guest
May 1st, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.02 KB | None | 0 0
  1. deploy@staging:~/apps/tapeonline/current/config$ cat staging.sphinx.conf
  2. indexer
  3. {
  4. }
  5.  
  6. searchd
  7. {
  8. listen = 127.0.0.1:9312
  9. log = /home/deploy/apps/tapeonline/releases/20100310192302/log/searchd.log
  10. query_log = /home/deploy/apps/tapeonline/releases/20100310192302/log/searchd.query.log
  11. pid_file = /home/deploy/apps/tapeonline/releases/20100310192302/log/searchd.staging.pid
  12. }
  13.  
  14. source content_core_0
  15. {
  16. type = mysql
  17. sql_host = localhost
  18. sql_user = *******
  19. sql_pass = ******
  20. sql_db = *****_staging
  21. sql_query_pre = UPDATE `contents` SET `delta` = 0 WHERE `delta` = 1
  22. sql_query_pre = SET NAMES utf8
  23. sql_query = SELECT SQL_NO_CACHE `contents`.`id` * 2 + 0 AS `id` , `contents`.`title` AS `title`, `contents`.`description` AS `description`, `contents`.`content` AS `content`, GROUP_CONCAT(DISTINCT IFNULL(`questions`.`value`, '0') SEPARATOR ' ') AS `questions_value`, GROUP_CONCAT(DISTINCT IFNULL(`questions`.`answer`, '0') SEPARATOR ' ') AS `questions_answer`, `contents`.`id` AS `sphinx_internal_id`, CAST(IFNULL(CRC32(NULLIF(`contents`.`type`,'')), 829950261) AS UNSIGNED) AS `class_crc`, '684805311,3448190970,3023575326,829950261' AS `subclass_crcs`, 0 AS `sphinx_deleted` FROM `contents` LEFT OUTER JOIN `questions` ON questions.faq_page_id = contents.id WHERE `contents`.`id` >= $start AND `contents`.`id` <= $end AND `contents`.`delta` = 0 GROUP BY `contents`.`id`, `contents`.`type` ORDER BY NULL
  24. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `contents` WHERE `contents`.`delta` = 0
  25. sql_attr_uint = sphinx_internal_id
  26. sql_attr_uint = class_crc
  27. sql_attr_uint = sphinx_deleted
  28. sql_attr_multi = uint subclass_crcs from field
  29. sql_query_info = SELECT * FROM `contents` WHERE `id` = (($id - 0) / 2)
  30. }
  31.  
  32. index content_core
  33. {
  34. source = content_core_0
  35. path = /home/deploy/apps/tapeonline/releases/20100310192302/db/sphinx/staging/content_core
  36. charset_type = utf-8
  37. min_infix_len = 3
  38. }
  39.  
  40. source content_delta_0 : content_core_0
  41. {
  42. type = mysql
  43. sql_host = localhost
  44. sql_user = *******
  45. sql_pass = ******
  46. sql_db = *****_staging
  47. sql_query_pre =
  48. sql_query_pre = SET NAMES utf8
  49. sql_query = SELECT SQL_NO_CACHE `contents`.`id` * 2 + 0 AS `id` , `contents`.`title` AS `title`, `contents`.`description` AS `description`, `contents`.`content` AS `content`, GROUP_CONCAT(DISTINCT IFNULL(`questions`.`value`, '0') SEPARATOR ' ') AS `questions_value`, GROUP_CONCAT(DISTINCT IFNULL(`questions`.`answer`, '0') SEPARATOR ' ') AS `questions_answer`, `contents`.`id` AS `sphinx_internal_id`, CAST(IFNULL(CRC32(NULLIF(`contents`.`type`,'')), 829950261) AS UNSIGNED) AS `class_crc`, '684805311,3448190970,3023575326,829950261' AS `subclass_crcs`, 0 AS `sphinx_deleted` FROM `contents` LEFT OUTER JOIN `questions` ON questions.faq_page_id = contents.id WHERE `contents`.`id` >= $start AND `contents`.`id` <= $end AND `contents`.`delta` = 1 GROUP BY `contents`.`id`, `contents`.`type` ORDER BY NULL
  50. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `contents` WHERE `contents`.`delta` = 1
  51. sql_attr_uint = sphinx_internal_id
  52. sql_attr_uint = class_crc
  53. sql_attr_uint = sphinx_deleted
  54. sql_attr_multi = uint subclass_crcs from field
  55. sql_query_info = SELECT * FROM `contents` WHERE `id` = (($id - 0) / 2)
  56. }
  57.  
  58. index content_delta : content_core
  59. {
  60. source = content_delta_0
  61. path = /home/deploy/apps/tapeonline/releases/20100310192302/db/sphinx/staging/content_delta
  62. }
  63.  
  64. index content
  65. {
  66. type = distributed
  67. local = content_delta
  68. local = content_core
  69. }
  70.  
  71. source product_core_0
  72. {
  73. type = mysql
  74. sql_host = localhost
  75. sql_user = *******
  76. sql_pass = ******
  77. sql_db = *****_staging
  78. sql_query_pre = SET NAMES utf8
  79. sql_query = SELECT SQL_NO_CACHE `products`.`id` * 2 + 1 AS `id` , `products`.`id` AS `id`, `products`.`model` AS `model`, `products`.`part_number` AS `part_number`, `products`.`markup_description` AS `markup_description`, `products`.`invoice_description` AS `invoice_description`, `products`.`text_description` AS `text_description`, `products`.`internal_reference` AS `internal_reference`, `products`.`state` AS `state`, GROUP_CONCAT(DISTINCT IFNULL(CONCAT_WS(' ', `descriptor_options`.`value`, `units`.`name`), '0') SEPARATOR ' ') AS `specification_descriptor_value`, `brands`.`name` AS `brand`, `classifications`.`name` AS `classification`, GROUP_CONCAT(DISTINCT IFNULL(`categories`.`name`, '0') SEPARATOR ' ') AS `category`, `products`.`id` AS `sphinx_internal_id`, 485965105 AS `class_crc`, '485965105' AS `subclass_crcs`, 0 AS `sphinx_deleted`, IFNULL(`brands`.`name`, '') AS `brand_sort`, IFNULL(`classifications`.`name`, '') AS `classification_sort` FROM `products` LEFT OUTER JOIN `categorizations` ON (`products`.`id` = `categorizations`.`product_id`) LEFT OUTER JOIN `specifications` ON (`specifications`.`categorization_id` = `categorizations`.`id`) LEFT OUTER JOIN `descriptor_options` ON `descriptor_options`.id = `specifications`.descriptor_option_id LEFT OUTER JOIN `units` ON `units`.id = `descriptor_options`.unit_id LEFT OUTER JOIN `brands` ON `brands`.id = `products`.brand_id LEFT OUTER JOIN `classifications` ON `classifications`.id = `products`.classification_id LEFT OUTER JOIN `categorizations` categories_products_join ON (`products`.`id` = `categories_products_join`.`product_id`) LEFT OUTER JOIN `categories` ON (`categories`.`id` = `categories_products_join`.`category_id`) WHERE `products`.`id` >= $start AND `products`.`id` <= $end GROUP BY `products`.`id` ORDER BY NULL
  80. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `products`
  81. sql_attr_uint = sphinx_internal_id
  82. sql_attr_uint = class_crc
  83. sql_attr_uint = sphinx_deleted
  84. sql_attr_str2ordinal = brand_sort
  85. sql_attr_str2ordinal = classification_sort
  86. sql_attr_multi = uint subclass_crcs from field
  87. sql_query_info = SELECT * FROM `products` WHERE `id` = (($id - 1) / 2)
  88. }
  89.  
  90. index product_core
  91. {
  92. source = product_core_0
  93. path = /home/deploy/apps/tapeonline/releases/20100310192302/db/sphinx/staging/product_core
  94. charset_type = utf-8
  95. min_infix_len = 3
  96. }
  97.  
  98. index product
  99. {
  100. type = distributed
  101. local = product_core
  102. }
Add Comment
Please, Sign In to add comment