sphinx.conf.sample 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Minimal Sphinx configuration sample for statusnet
  3. #
  4. source src1
  5. {
  6. type = mysql
  7. sql_host = localhost
  8. sql_user = USERNAME
  9. sql_pass = PASSWORD
  10. sql_db = identi_ca
  11. sql_port = 3306
  12. sql_query = SELECT id, UNIX_TIMESTAMP(created) as created_ts, nickname, fullname, location, bio, homepage FROM profile
  13. sql_query_info = SELECT * FROM profile where id = $id
  14. sql_attr_timestamp = created_ts
  15. }
  16. source src2
  17. {
  18. type = mysql
  19. sql_host = localhost
  20. sql_user = USERNAME
  21. sql_pass = PASSWORD
  22. sql_db = identi_ca
  23. sql_port = 3306
  24. sql_query = SELECT id, UNIX_TIMESTAMP(created) as created_ts, content FROM notice
  25. sql_query_info = SELECT * FROM notice where notice.id = $id AND notice.is_local != -2
  26. sql_attr_timestamp = created_ts
  27. }
  28. index identica_notices
  29. {
  30. source = src2
  31. path = DIRECTORY/data/identica_notices
  32. docinfo = extern
  33. charset_type = utf-8
  34. min_word_len = 3
  35. stopwords = DIRECTORY/data/stopwords-en.txt
  36. }
  37. index identica_people
  38. {
  39. source = src1
  40. path = DIRECTORY/data/identica_people
  41. docinfo = extern
  42. charset_type = utf-8
  43. min_word_len = 3
  44. stopwords = DIRECTORY/data/stopwords-en.txt
  45. }
  46. indexer
  47. {
  48. mem_limit = 32M
  49. }
  50. searchd
  51. {
  52. port = 3312
  53. log = DIRECTORY/log/searchd.log
  54. query_log = DIRECTORY/log/query.log
  55. read_timeout = 5
  56. max_children = 30
  57. pid_file = DIRECTORY/log/searchd.pid
  58. max_matches = 1000
  59. seamless_rotate = 1
  60. preopen_indexes = 0
  61. unlink_old = 1
  62. }