Guest User

Untitled

a guest
Jun 18th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 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(CONCAT_WS(' ', `properties`.`address1`, `properties`.`address2`, `properties`.`city`, `properties`.`state`, `properties`.`postal_code`) AS CHAR) AS `address`, CAST(`properties`.`remarks` AS CHAR) AS `remarks`, CAST(`properties`.`listing_number` AS CHAR) AS `listing_number`, CAST(`properties`.`listing_status` AS CHAR) AS `listing_status`, CAST(`properties`.`listing_agent` AS CHAR) AS `listing_agent`, CAST(`properties`.`listing_office` AS CHAR) AS `listing_office`, CAST(`properties`.`code` AS CHAR) AS `code`, `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`, UNIX_TIMESTAMP(`properties`.`status_date`) AS `status_date`, `properties`.`list_price` AS `list_price`, `properties`.`baths` AS `baths`, `properties`.`bedrooms` AS `bedrooms`, `properties`.`north` AS `north`, `properties`.`south` AS `south`, `properties`.`east` AS `east`, `properties`.`west` AS `west`, `properties`.`postal_code` AS `postal_code`, `properties`.`active` AS `active`, `properties`.`searchable` AS `searchable`, `properties`.`neighborhood_id` AS `neighborhood_id`, (`properties`.`traits` & 512) > 0 AS `cats_allowed`, (`properties`.`traits` & 1) > 0 AS `central_air`, (`properties`.`traits` & 1024) > 0 AS `clubhouse`, (`properties`.`traits` & 2) > 0 AS `coming_soon`, (`properties`.`traits` & 2048) > 0 AS `dogs_allowed`, (`properties`.`traits` & 4096) > 0 AS `doorman`, (`properties`.`traits` & 4) > 0 AS `elevator`, (`properties`.`traits` & 8192) > 0 AS `exercise_area`, (`properties`.`traits` & 8) > 0 AS `foreclosure`, (`properties`.`traits` & 0) > 0 AS `green`, (`properties`.`traits` & 16384) > 0 AS `hardwood`, (`properties`.`traits` & 32768) > 0 AS `in_unit_laundry`, (`properties`.`traits` & 0) > 0 AS `investment`, (`properties`.`traits` & 0) > 0 AS `listed_on_mls`, (`properties`.`traits` & 65536) > 0 AS `loft`, (`properties`.`traits` & 64) > 0 AS `new_construction`, (`properties`.`traits` & 128) > 0 AS `new_listing`, (`properties`.`traits` & 131072) > 0 AS `outdoor_area`, (`properties`.`traits` & 0) > 0 AS `parking`, (`properties`.`traits` & 262144) > 0 AS `pool`, (`properties`.`traits` & 1048576) > 0 AS `sauna`, (`properties`.`traits` & 256) > 0 AS `security_features`, (`properties`.`traits` & 524288) > 0 AS `tennis_court`, (`properties`.`traits` & 2097152) > 0 AS `vacation` 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_uint = list_price
  28. sql_attr_uint = bedrooms
  29. sql_attr_uint = north
  30. sql_attr_uint = south
  31. sql_attr_uint = east
  32. sql_attr_uint = west
  33. sql_attr_uint = postal_code
  34. sql_attr_uint = neighborhood_id
  35. sql_attr_bool = active
  36. sql_attr_bool = searchable
  37. sql_attr_bool = cats_allowed
  38. sql_attr_bool = central_air
  39. sql_attr_bool = clubhouse
  40. sql_attr_bool = coming_soon
  41. sql_attr_bool = dogs_allowed
  42. sql_attr_bool = doorman
  43. sql_attr_bool = elevator
  44. sql_attr_bool = exercise_area
  45. sql_attr_bool = foreclosure
  46. sql_attr_bool = green
  47. sql_attr_bool = hardwood
  48. sql_attr_bool = in_unit_laundry
  49. sql_attr_bool = investment
  50. sql_attr_bool = listed_on_mls
  51. sql_attr_bool = loft
  52. sql_attr_bool = new_construction
  53. sql_attr_bool = new_listing
  54. sql_attr_bool = outdoor_area
  55. sql_attr_bool = parking
  56. sql_attr_bool = pool
  57. sql_attr_bool = sauna
  58. sql_attr_bool = security_features
  59. sql_attr_bool = tennis_court
  60. sql_attr_bool = vacation
  61. sql_attr_timestamp = status_date
  62. sql_attr_float = baths
  63. sql_attr_multi = uint subclass_crcs from field
  64. sql_query_info = SELECT * FROM `properties` WHERE `id` = (($id - 0) / 2)
  65. }
  66.  
  67. index property_core
  68. {
  69. source = property_core_0
  70. path = /home/jacobbasham/src/smart/db/sphinx/development/property_core
  71. morphology = stem_en
  72. charset_type = utf-8
  73. }
  74.  
  75. index property
  76. {
  77. type = distributed
  78. local = property_core
  79. }
  80.  
  81. source user_core_0
  82. {
  83. type = mysql
  84. sql_host = localhost
  85. sql_user = smartre
  86. sql_pass =
  87. sql_db = smartre_development
  88. sql_query_pre = SET NAMES utf8
  89. 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
  90. sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `users`
  91. sql_attr_uint = sphinx_internal_id
  92. sql_attr_uint = class_crc
  93. sql_attr_uint = sphinx_deleted
  94. sql_attr_multi = uint subclass_crcs from field
  95. sql_query_info = SELECT * FROM `users` WHERE `id` = (($id - 1) / 2)
  96. }
  97.  
  98. index user_core
  99. {
  100. source = user_core_0
  101. path = /home/jacobbasham/src/smart/db/sphinx/development/user_core
  102. morphology = stem_en
  103. charset_type = utf-8
  104. }
  105.  
  106. index user
  107. {
  108. type = distributed
  109. local = user_core
  110. }
Add Comment
Please, Sign In to add comment