Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat sphinx.conf
- #
- # Minimal Sphinx configuration for Bitrix
- #
- searchd
- {
- listen = 9312
- listen = 9306:mysql41
- log = /var/log/sphinxsearch/searchd.log
- query_log = /var/log/sphinxsearch/query.log
- read_timeout = 5
- max_children = 30
- pid_file = /var/run/sphinxsearch/searchd.pid
- ### max_matches = 1000
- seamless_rotate = 1
- preopen_indexes = 1
- unlink_old = 1
- workers = threads # for RT to work
- binlog_path = /var/lib/sphinxsearch/data/
- binlog_max_log_size = 512M
- binlog_flush = 2
- rt_flush_period = 3600
- }
- common
- {
- lemmatizer_base = /etc/sphinxsearch/dicts
- }
- indexer
- {
- lemmatizer_cache = 128M
- #####lemmatizer_base = /etc/sphinxsearch/dicts/ # lemmatizer_base в Sphinx 2.2.1+ располагается в секции common
- }
- #### path = /var/lib/sphinxsearch/data/bitrix
- index bitrix
- {
- #main settings
- type = rt
- path = /var/lib/sphinxsearch/data/bitrix
- # docinfo = inline
- ondisk_attrs=1
- morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru
- #morphology = stem_enru, soundex
- # dict = keywords
- #dict=crc
- prefix_fields = title
- infix_fields=
- min_prefix_len = 2
- # Note. Added 27.03.2017. Kulaev Vladimir. Trouble with word 'очки'.
- min_word_len = 3
- #min_infix_len = 3 # 29.09.2016
- #enable_star = 1
- expand_keywords = 1 # 29.09.2016
- #index_exact_words = 1
- rt_field = title
- rt_field = body
- rt_field = article
- rt_field = article_cut
- rt_field = keywords
- rt_field = color
- rt_attr_uint = module_id
- rt_attr_string = module
- rt_attr_uint = item_id
- rt_attr_string = item
- rt_attr_uint = param1_id
- rt_attr_string = param1
- rt_attr_uint = param2_id
- rt_attr_string = param2
- rt_attr_timestamp = date_change
- rt_attr_timestamp = date_to
- rt_attr_timestamp = date_from
- rt_attr_uint = custom_rank
- rt_attr_multi = tags
- rt_attr_multi = right
- rt_attr_multi = site
- rt_attr_multi = param
- #charset_type = utf-8
- ###stopwords = /etc/sphinx/stopwords.txt
- # Added 12.10.2016
- index_exact_words = 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement