Advertisement
ChildrenofkoRn

config/test.sphinx.conf

Apr 12th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. indexer
  2. {
  3. }
  4.  
  5. searchd
  6. {
  7. listen = 127.0.0.1:9307:mysql41
  8. log = /home/vagrant/data/app/log/test.searchd.log
  9. query_log = /home/vagrant/data/app/log/test.searchd.query.log
  10. pid_file = /home/vagrant/data/app/log/test.sphinx.pid
  11. workers = threads
  12. binlog_path = /home/vagrant/data/app/tmp/binlog/test
  13. }
  14.  
  15. index review_core
  16. {
  17. type = rt
  18. path = /home/vagrant/data/app/db/sphinx/test/review_core
  19. min_infix_len = 3
  20. rt_field = title
  21. rt_field = body
  22. rt_field = author
  23. rt_attr_uint = sphinx_deleted
  24. rt_attr_uint = author_id
  25. rt_attr_uint = created_at
  26. rt_attr_uint = updated_at
  27. rt_attr_bigint = sphinx_internal_id
  28. rt_attr_string = sphinx_internal_class
  29. rt_attr_string = title_sort
  30. rt_attr_string = author_sort
  31. }
  32.  
  33. index user_core
  34. {
  35. type = rt
  36. path = /home/vagrant/data/app/db/sphinx/test/user_core
  37. min_infix_len = 3
  38. rt_field = username
  39. rt_attr_uint = sphinx_deleted
  40. rt_attr_uint = created_at
  41. rt_attr_uint = updated_at
  42. rt_attr_bigint = sphinx_internal_id
  43. rt_attr_string = sphinx_internal_class
  44. rt_attr_string = username_sort
  45. }
  46.  
  47. index review
  48. {
  49. type = distributed
  50. local = review_core
  51. }
  52.  
  53. index user
  54. {
  55. type = distributed
  56. local = user_core
  57. }
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement