Advertisement
Axxxxxx

Untitled

Apr 28th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.41 KB | None | 0 0
  1. # cat sphinx.conf
  2. #
  3. # Minimal Sphinx configuration for Bitrix
  4. #
  5. searchd
  6. {
  7.     listen                      = 9312
  8.     listen                      = 9306:mysql41
  9.     log                 = /var/log/sphinxsearch/searchd.log
  10.     query_log           = /var/log/sphinxsearch/query.log
  11.     read_timeout                = 5
  12.     max_children                = 30
  13.     pid_file            = /var/run/sphinxsearch/searchd.pid
  14. ###    max_matches              = 1000
  15.     seamless_rotate             = 1
  16.     preopen_indexes             = 1
  17.     unlink_old          = 1
  18.     workers                     = threads # for RT to work
  19.     binlog_path         = /var/lib/sphinxsearch/data/
  20.     binlog_max_log_size         = 512M
  21.     binlog_flush                = 2
  22.     rt_flush_period             = 3600
  23. }
  24.  
  25. common
  26.     {
  27.           lemmatizer_base = /etc/sphinxsearch/dicts
  28.     }
  29.  
  30. indexer
  31. {
  32.     lemmatizer_cache    = 128M
  33.     #####lemmatizer_base        = /etc/sphinxsearch/dicts/      # lemmatizer_base в Sphinx 2.2.1+ располагается в секции common
  34. }
  35.  
  36.  
  37. ####        path = /var/lib/sphinxsearch/data/bitrix
  38.  
  39.  
  40. index bitrix
  41. {
  42.     #main settings
  43.     type = rt
  44.     path = /var/lib/sphinxsearch/data/bitrix
  45. #    docinfo = inline
  46.     ondisk_attrs=1
  47.     morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru
  48.     #morphology = stem_enru, soundex
  49. #   dict = keywords
  50. #dict=crc
  51.     prefix_fields = title
  52.     infix_fields=
  53.     min_prefix_len = 2
  54.     # Note. Added 27.03.2017. Kulaev Vladimir. Trouble with word 'очки'.
  55.     min_word_len = 3
  56.     #min_infix_len = 3 # 29.09.2016
  57.     #enable_star = 1
  58.     expand_keywords = 1 # 29.09.2016
  59.     #index_exact_words = 1
  60.     rt_field = title
  61.     rt_field = body
  62.     rt_field = article
  63.     rt_field = article_cut
  64.     rt_field = keywords
  65.     rt_field = color
  66.     rt_attr_uint = module_id
  67.     rt_attr_string = module
  68.     rt_attr_uint = item_id
  69.     rt_attr_string = item
  70.     rt_attr_uint = param1_id
  71.     rt_attr_string = param1
  72.     rt_attr_uint = param2_id
  73.     rt_attr_string = param2
  74.     rt_attr_timestamp = date_change
  75.     rt_attr_timestamp = date_to
  76.     rt_attr_timestamp = date_from
  77.     rt_attr_uint = custom_rank
  78.     rt_attr_multi = tags
  79.     rt_attr_multi = right
  80.     rt_attr_multi = site
  81.     rt_attr_multi = param
  82.     #charset_type = utf-8
  83.     ###stopwords = /etc/sphinx/stopwords.txt
  84.     # Added 12.10.2016
  85.     index_exact_words = 1
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement