Guest User

Untitled

a guest
May 7th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. # Auto-generated at Tue Sep 16 14:35:14 -0400 2008.
  2. # Hand modifications will be overwritten.
  3. # /Users/jamie/code/alm/junto/config/ultrasphinx/default.base
  4. indexer {
  5. mem_limit = 256M
  6. }
  7.  
  8. searchd {
  9. read_timeout = 5
  10. max_children = 300
  11. log = /opt/local/var/db/sphinx/log/searchd.log
  12. port = 3313
  13. max_matches = 100000
  14. query_log = /opt/local/var/db/sphinx/log/query.log
  15. seamless_rotate = 1
  16. pid_file = /opt/local/var/db/sphinx/log/searchd.pid
  17. address = 0.0.0.0
  18. }
  19.  
  20. # Source configuration
  21.  
  22. source profiles_main
  23. {
  24. sql_range_step = 5000
  25. sql_query_post =
  26. sql_ranged_throttle = 0
  27.  
  28. type = mysql
  29. sql_query_pre = SET SESSION group_concat_max_len = 65535
  30. sql_query_pre = SET NAMES utf8
  31.  
  32. sql_db = junto_dev
  33. sql_host = localhost
  34. sql_pass =
  35. sql_user = root
  36. sql_query_range = SELECT MIN(id) , MAX(id) FROM profiles
  37. sql_query = SELECT (profiles.id * 1 + 0) AS id, profiles.about_me AS about_me, FLOOR(DATEDIFF(DATE(NOW()),birthdate)/365.25) AS age, UNIX_TIMESTAMP(profiles.birthdate) AS birthdate, profiles.body_type AS body_type, 'Profile' AS class, 0 AS class_id, UNIX_TIMESTAMP(profiles.created_at) AS created_at, profiles.ethnicity AS ethnicity, profiles.eye_colour AS eye_colour, profiles.gender AS gender, profiles.hair_colour AS hair_colour, profiles.height AS height, profiles.interest AS interest, UNIX_TIMESTAMP(profiles.last_login) AS last_login, RADIANS(profiles.lat) AS lat, RADIANS(profiles.lng) AS lng, profiles.login AS login, profiles.question_responses AS question_responses, profiles.tagline AS tagline FROM profiles WHERE profiles.id >= $start AND profiles.id <= $end GROUP BY profiles.id
  38.  
  39. sql_attr_uint = age
  40. sql_attr_timestamp = birthdate
  41. sql_attr_uint = class_id
  42. sql_attr_timestamp = created_at
  43. sql_attr_uint = height
  44. sql_attr_timestamp = last_login
  45. sql_attr_float = lat
  46. sql_attr_float = lng
  47. sql_query_info = SELECT * FROM profiles WHERE profiles.id = (($id - 0) / 1)
  48. }
  49.  
  50.  
  51. # Index configuration
  52.  
  53. index main
  54. {
  55. source = profiles_main
  56. charset_type = utf-8
  57. html_index_attrs =
  58. charset_table = 0..9, A..Z->a..z, -, _, ., &, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F,U+C5->U+E5, U+E5, U+C4->U+E4, U+E4, U+D6->U+F6, U+F6, U+16B, U+0c1->a, U+0c4->a, U+0c9->e, U+0cd->i, U+0d3->o, U+0d4->o, U+0da->u, U+0dd->y, U+0e1->a, U+0e4->a, U+0e9->e, U+0ed->i, U+0f3->o, U+0f4->o, U+0fa->u, U+0fd->y, U+104->U+105, U+105, U+106->U+107, U+10c->c, U+10d->c, U+10e->d, U+10f->d, U+116->U+117, U+117, U+118->U+119, U+11a->e, U+11b->e, U+12E->U+12F, U+12F, U+139->l, U+13a->l, U+13d->l, U+13e->l, U+141->U+142, U+142, U+143->U+144, U+144,U+147->n, U+148->n, U+154->r, U+155->r, U+158->r, U+159->r, U+15A->U+15B, U+15B, U+160->s, U+160->U+161, U+161->s, U+164->t, U+165->t, U+16A->U+16B, U+16B, U+16e->u, U+16f->u, U+172->U+173, U+173, U+179->U+17A, U+17A, U+17B->U+17C, U+17C, U+17d->z, U+17e->z,
  59. min_word_len = 1
  60. stopwords =
  61. min_infix_len = 2
  62. enable_star = 1
  63. html_strip = 0
  64. path = /opt/local/var/db/sphinx//sphinx_index_main
  65. docinfo = extern
  66. morphology = stem_en
  67. }
  68.  
  69.  
  70. # Source configuration
  71.  
  72. source profiles_delta
  73. {
  74. sql_range_step = 5000
  75. sql_query_post =
  76. sql_ranged_throttle = 0
  77.  
  78. type = mysql
  79. sql_query_pre = SET SESSION group_concat_max_len = 65535
  80. sql_query_pre = SET NAMES utf8
  81.  
  82. sql_db = junto_dev
  83. sql_host = localhost
  84. sql_pass =
  85. sql_user = root
  86. sql_query_range = SELECT MIN(id) , MAX(id) FROM profiles WHERE profiles.updated_at > DATE_SUB(NOW(), INTERVAL 88200 SECOND)
  87. sql_query = SELECT (profiles.id * 1 + 0) AS id, profiles.about_me AS about_me, FLOOR(DATEDIFF(DATE(NOW()),birthdate)/365.25) AS age, UNIX_TIMESTAMP(profiles.birthdate) AS birthdate, profiles.body_type AS body_type, 'Profile' AS class, 0 AS class_id, UNIX_TIMESTAMP(profiles.created_at) AS created_at, profiles.ethnicity AS ethnicity, profiles.eye_colour AS eye_colour, profiles.gender AS gender, profiles.hair_colour AS hair_colour, profiles.height AS height, profiles.interest AS interest, UNIX_TIMESTAMP(profiles.last_login) AS last_login, RADIANS(profiles.lat) AS lat, RADIANS(profiles.lng) AS lng, profiles.login AS login, profiles.question_responses AS question_responses, profiles.tagline AS tagline FROM profiles WHERE profiles.id >= $start AND profiles.id <= $end AND profiles.updated_at > DATE_SUB(NOW(), INTERVAL 88200 SECOND) GROUP BY profiles.id
  88.  
  89. sql_attr_uint = age
  90. sql_attr_timestamp = birthdate
  91. sql_attr_uint = class_id
  92. sql_attr_timestamp = created_at
  93. sql_attr_uint = height
  94. sql_attr_timestamp = last_login
  95. sql_attr_float = lat
  96. sql_attr_float = lng
  97. sql_query_info = SELECT * FROM profiles WHERE profiles.id = (($id - 0) / 1)
  98. }
  99.  
  100.  
  101. # Index configuration
  102.  
  103. index delta
  104. {
  105. source = profiles_delta
  106. charset_type = utf-8
  107. html_index_attrs =
  108. charset_table = 0..9, A..Z->a..z, -, _, ., &, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F,U+C5->U+E5, U+E5, U+C4->U+E4, U+E4, U+D6->U+F6, U+F6, U+16B, U+0c1->a, U+0c4->a, U+0c9->e, U+0cd->i, U+0d3->o, U+0d4->o, U+0da->u, U+0dd->y, U+0e1->a, U+0e4->a, U+0e9->e, U+0ed->i, U+0f3->o, U+0f4->o, U+0fa->u, U+0fd->y, U+104->U+105, U+105, U+106->U+107, U+10c->c, U+10d->c, U+10e->d, U+10f->d, U+116->U+117, U+117, U+118->U+119, U+11a->e, U+11b->e, U+12E->U+12F, U+12F, U+139->l, U+13a->l, U+13d->l, U+13e->l, U+141->U+142, U+142, U+143->U+144, U+144,U+147->n, U+148->n, U+154->r, U+155->r, U+158->r, U+159->r, U+15A->U+15B, U+15B, U+160->s, U+160->U+161, U+161->s, U+164->t, U+165->t, U+16A->U+16B, U+16B, U+16e->u, U+16f->u, U+172->U+173, U+173, U+179->U+17A, U+17A, U+17B->U+17C, U+17C, U+17d->z, U+17e->z,
  109. min_word_len = 1
  110. stopwords =
  111. min_infix_len = 2
  112. enable_star = 1
  113. html_strip = 0
  114. path = /opt/local/var/db/sphinx//sphinx_index_delta
  115. docinfo = extern
  116. morphology = stem_en
  117. }
Add Comment
Please, Sign In to add comment