Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat sphinx.conf
- index bitrix
- {
- charset_table = 0..9, A..Z->a..z, _, a..z, \
- U+410..U+42F->U+430..U+44F, U+430..U+44F, U+401->U+435, U+451->U+435
- blend_chars = -, U+2D
- # ignore_chars = -, U+2D
- type = rt
- path = /var/lib/sphinxsearch/data/bitrix
- wordforms = /var/lib/sphinxsearch/wordforms.txt
- ondisk_attrs=1
- morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru
- expand_keywords = 1
- min_prefix_len = 2
- index_exact_words = 1
- min_word_len = 2
- stopwords = /etc/sphinxsearch/stopwords.txt
- rt_field = article
- rt_field = article_cut
- rt_field = body
- rt_field = color
- rt_field = keywords
- rt_field = title
- rt_attr_uint = item_id
- rt_attr_string = item
- rt_attr_uint = module_id
- rt_attr_string = module
- rt_attr_uint = param1_id
- rt_attr_string = param1
- rt_attr_uint = param2_id
- rt_attr_uint = custom_rank
- rt_attr_string = param2
- rt_attr_multi = param
- rt_attr_multi = right
- rt_attr_multi = site
- rt_attr_multi = tags
- rt_attr_timestamp = date_change
- rt_attr_timestamp = date_from
- rt_attr_timestamp = date_to
- }
- common
- {
- lemmatizer_base = /etc/sphinxsearch/dicts/ # lemmatizer_base в Sphinx 2.2.1+ располагается в секции common
- }
- indexer
- {
- mem_limit = 250M
- lemmatizer_cache = 250M
- }
- searchd
- {
- listen = localhost:9312
- listen = 9306:mysql41
- log = /var/log/sphinxsearch/searchd.log
- query_log = /var/log/sphinxsearch/query.log
- read_timeout = 5
- max_children = 50
- pid_file = /var/run/sphinxsearch/searchd.pid
- seamless_rotate = 1
- preopen_indexes = 1
- unlink_old = 1
- workers = threads # for RT to work
- binlog_path = /var/lib/sphinxsearch/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement