Advertisement
Axxxxxx

sphinx.conf

Feb 5th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.99 KB | None | 0 0
  1. # cat sphinx.conf
  2.  
  3. index bitrix
  4. {
  5.     charset_table = 0..9, A..Z->a..z, _, a..z, \
  6.     U+410..U+42F->U+430..U+44F, U+430..U+44F, U+401->U+435, U+451->U+435
  7.     blend_chars = -, U+2D
  8. #    ignore_chars = -, U+2D
  9.     type = rt
  10.     path = /var/lib/sphinxsearch/data/bitrix
  11.     wordforms = /var/lib/sphinxsearch/wordforms.txt
  12.     ondisk_attrs=1
  13.     morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru
  14.     expand_keywords = 1
  15.     min_prefix_len = 2
  16.     index_exact_words = 1
  17.     min_word_len = 2
  18.  
  19.     stopwords = /etc/sphinxsearch/stopwords.txt
  20.  
  21.     rt_field = article
  22.     rt_field = article_cut
  23.     rt_field = body
  24.     rt_field = color
  25.     rt_field = keywords
  26.     rt_field = title
  27.  
  28.     rt_attr_uint = item_id
  29.     rt_attr_string = item
  30.     rt_attr_uint = module_id
  31.     rt_attr_string = module
  32.     rt_attr_uint = param1_id
  33.     rt_attr_string = param1
  34.     rt_attr_uint = param2_id
  35.     rt_attr_uint = custom_rank
  36.     rt_attr_string = param2
  37.  
  38.     rt_attr_multi = param
  39.     rt_attr_multi = right
  40.     rt_attr_multi = site
  41.     rt_attr_multi = tags
  42.  
  43.     rt_attr_timestamp = date_change
  44.     rt_attr_timestamp = date_from
  45.     rt_attr_timestamp = date_to
  46. }
  47.  
  48.  
  49.  
  50. common
  51. {
  52.     lemmatizer_base     = /etc/sphinxsearch/dicts/      # lemmatizer_base в Sphinx 2.2.1+ располагается в секции common
  53. }
  54.  
  55.  
  56. indexer
  57. {
  58.     mem_limit          = 250M
  59.     lemmatizer_cache   = 250M
  60. }
  61.  
  62.  
  63. searchd
  64. {
  65.     listen                      = localhost:9312
  66.     listen                      = 9306:mysql41
  67.     log                 = /var/log/sphinxsearch/searchd.log
  68.     query_log           = /var/log/sphinxsearch/query.log
  69.     read_timeout                = 5
  70.     max_children                = 50
  71.     pid_file            = /var/run/sphinxsearch/searchd.pid
  72.     seamless_rotate             = 1
  73.     preopen_indexes             = 1
  74.     unlink_old          = 1
  75.     workers                     = threads # for RT to work
  76.     binlog_path         = /var/lib/sphinxsearch/
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement