sphinx-min.conf.dist 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # Minimal Sphinx configuration sample (clean, simple, functional)
  3. #
  4. source connection
  5. {
  6. type = mysql
  7. sql_host = localhost
  8. sql_user = root
  9. sql_pass =
  10. sql_db = awlex
  11. sql_port = 3306 # optional, default is 3306
  12. #sql_query_pre = utf8
  13. }
  14. source items : connection {
  15. sql_query = \
  16. SELECT id, caption, description FROM items
  17. sql_attr_uint = id
  18. sql_field_string = caption
  19. sql_field_string = description
  20. }
  21. index items_index {
  22. source = items
  23. path = storage/sphinx/data/items
  24. morphology = lemmatize_ru_all
  25. ignore_chars = U+AD
  26. blend_chars = +, &, U+23
  27. blend_mode = trim_tail, skip_pure
  28. charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+401->U+0435, U+451->U+0435
  29. min_infix_len = 2
  30. }
  31. common {
  32. lemmatizer_base = sphinx-3.0.2/dict
  33. }
  34. indexer
  35. {
  36. mem_limit = 128M
  37. lemmatizer_cache = 256M # cache it all
  38. }
  39. searchd
  40. {
  41. #listen = 127.0.0.1:9312
  42. listen = 127.0.0.1:9306:mysql41
  43. log = storage\\sphinx\\log\\searchd.log
  44. query_log = storage\\sphinx\\log\\query.log
  45. binlog_path = storage\\sphinx\\log
  46. pid_file = storage\\sphinx\\log\\searchd.pid
  47. seamless_rotate = 1
  48. preopen_indexes = 1
  49. unlink_old = 1
  50. read_timeout = 5
  51. max_children = 10
  52. workers = threads # for RT to work
  53. #client_timeout = 3600
  54. }