Guest User

Untitled

a guest
Jun 18th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. indexer
  2. {
  3. }
  4.  
  5. searchd
  6. {
  7. address = 127.0.0.1
  8. port = 3312
  9. log = /home/jacobbasham/src/smart/log/searchd.log
  10. query_log = /home/jacobbasham/src/smart/log/searchd.query.log
  11. pid_file = /home/jacobbasham/src/smart/log/searchd.development.pid
  12. }
  13.  
  14. source property_core_0
  15. {
  16. type = mysql
  17. sql_host = localhost
  18. sql_user = smartre
  19. sql_pass =
  20. sql_db = smartre_development
  21. sql_query_pre = SET NAMES utf8
  22. sql_query = SELECT `properties`.`id` * 2 + 0 AS `id` , CAST(`properties`.`listing_number` AS CHAR) AS `listing_number`, `properties`.`id` AS `sphinx_internal_id`, CAST(IFNULL(CRC32(NULLIF(`properties`.`type`,'')), 1921285768) AS UNSIGNED) AS `class_crc`, '1921285768' AS `subclass_crcs`, 0 AS `sphinx_deleted` FROM `properties` WHERE `properties`.`id` >= $start AND `properties`.`id` <= $end GROUP BY `properties`.`id`, `properties`.`type` ORDER BY NULL
  23. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `properties`
  24. sql_attr_uint = sphinx_internal_id
  25. sql_attr_uint = class_crc
  26. sql_attr_uint = sphinx_deleted
  27. sql_attr_multi = uint subclass_crcs from field
  28. sql_query_info = SELECT * FROM `properties` WHERE `id` = (($id - 0) / 2)
  29. }
  30.  
  31. index property_core
  32. {
  33. source = property_core_0
  34. path = /home/jacobbasham/src/smart/db/sphinx/development/property_core
  35. morphology = stem_en
  36. charset_type = utf-8
  37. }
  38.  
  39. index property
  40. {
  41. type = distributed
  42. local = property_core
  43. }
  44.  
  45. source user_core_0
  46. {
  47. type = mysql
  48. sql_host = localhost
  49. sql_user = smartre
  50. sql_pass =
  51. sql_db = smartre_development
  52. sql_query_pre = SET NAMES utf8
  53. sql_query = SELECT `users`.`id` * 2 + 1 AS `id` , CAST(`users`.`email` AS CHAR) AS `email`, `users`.`id` AS `sphinx_internal_id`, CAST(IFNULL(CRC32(NULLIF(`users`.`type`,'')), 765557111) AS UNSIGNED) AS `class_crc`, '765557111' AS `subclass_crcs`, 0 AS `sphinx_deleted` FROM `users` WHERE `users`.`id` >= $start AND `users`.`id` <= $end GROUP BY `users`.`id`, `users`.`type` ORDER BY NULL
  54. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `users`
  55. sql_attr_uint = sphinx_internal_id
  56. sql_attr_uint = class_crc
  57. sql_attr_uint = sphinx_deleted
  58. sql_attr_multi = uint subclass_crcs from field
  59. sql_query_info = SELECT * FROM `users` WHERE `id` = (($id - 1) / 2)
  60. }
  61.  
  62. index user_core
  63. {
  64. source = user_core_0
  65. path = /home/jacobbasham/src/smart/db/sphinx/development/user_core
  66. morphology = stem_en
  67. charset_type = utf-8
  68. }
  69.  
  70. index user
  71. {
  72. type = distributed
  73. local = user_core
  74. }
Add Comment
Please, Sign In to add comment