Advertisement
Guest User

development.sphinx.conf

a guest
May 11th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2. indexer
  3. {
  4. }
  5.  
  6. searchd
  7. {
  8. listen = 127.0.0.1:9306:mysql41
  9. log = /var/www/tutorial/log/development.searchd.log
  10. query_log = /var/www/v/log/development.searchd.query.log
  11. pid_file = /var/www/tutorial/log/development.sphinx.pid
  12. workers = threads
  13. binlog_path = /var/www/tutorial/tmp/binlog/development
  14. }
  15.  
  16. source realty_core_0
  17. {
  18. type = mysql
  19. sql_host = localhost
  20. sql_user = user
  21. sql_pass = password
  22. sql_db = tutorial_dev
  23. sql_sock = /var/run/mysqld/mysqld.sock
  24. sql_query_pre = SET TIME_ZONE = '+0:00'
  25. sql_query_pre = SET NAMES utf8
  26. sql_query = /here goes incredible large query/
  27. sql_query_range = SELECT IFNULL(MIN(`objects`.`id`), 1), IFNULL(MAX(`objects`.`id`), 1) FROM `objects`
  28. sql_attr_uint = sphinx_internal_id
  29. sql_attr_uint = sphinx_deleted
  30. sql_attr_timestamp = created_at
  31. sql_attr_timestamp = updated_at
  32. sql_attr_string = sphinx_internal_class
  33. sql_field_string = adv_type
  34. sql_field_string = object_type
  35. sql_field_string = rooms_num
  36. sql_field_string = price
  37. sql_field_string = language
  38. sql_field_string = country
  39. sql_field_string = city
  40. sql_field_string = district
  41. sql_field_string = street
  42. sql_field_string = house
  43. sql_field_string = house_part
  44. sql_field_string = it_is_new
  45. sql_field_string = it_is_brick
  46. sql_field_string = full_size
  47. sql_field_string = living_size
  48. sql_field_string = citchen_size
  49. sql_field_string = floor
  50. sql_field_string = has_balcony
  51. sql_field_string = description
  52. sql_query_info = SELECT `objects`.* FROM `objects` WHERE (`objects`.`id` = ($id - 0) / 2)
  53. }
  54.  
  55. index realty_core
  56. {
  57. type = plain
  58. path = /var/www/tutorial/db/sphinx/development/realty_core
  59. docinfo = extern
  60. mlock = 0
  61. min_stemming_len = 2
  62. min_word_len = 2
  63. min_infix_len = 1
  64. enable_star = 1
  65. source = realty_core_0
  66. }
  67.  
  68. index realty
  69. {
  70. type = distributed
  71. local = realty_core
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement