Поиск sphinx. Не работают wordforms

M
На сайте с 02.05.2017
Offline
0
1965

Здравствуйте. Помогите, пожалуйста, разобраться! Настраиваю поиск sphinx на сайте, сайт на Битриксе + CentOs7. Необходимо настроить вывод результат запросов найк - nike, и т.д.

Вот конфиг сфинкса:


#!/usr/bin/php
# Ansible managed
# Minimal Sphinx configuration for Bitrix
#
# Include site search db
<?php

$includeConfig = "\n\n";
$confDir = "/etc/sphinx/bx/search_index";
if(is_dir($confDir))
{
if($dh = opendir($confDir))
{
while(($file = readdir($dh)) !== false)
{
if($file == "." || $file == "..")
continue;

$includeConfig .= file_get_contents($confDir.'/'.$file)."\n\n";
}
closedir($dh);
}
}

echo $includeConfig;

?>

index bitrix
{
type = rt

# Размер чанка для RT
rt_mem_limit = 256M

path = /var/lib/sphinx/bitrix
wordforms = /var/lib/sphinx/data/wordforms.txt

# Choose appropriate type of morphology to use
# morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all
# morphology = stem_enru, Soundex

# Описание всех полей для индексирования

rt_field = title
rt_field = content
rt_field = body

# Описание атрибутов

rt_attr_uint = gid
rt_attr_uint = module_id
rt_attr_uint = item_id
rt_attr_uint = param1_id
rt_attr_uint = param2_id
rt_attr_uint = custom_rank

rt_attr_string = module
rt_attr_string = item
rt_attr_string = param1
rt_attr_string = param2

rt_attr_timestamp = date_change
rt_attr_timestamp = date_from
rt_attr_timestamp = date_to

rt_attr_multi = tags
rt_attr_multi = right
rt_attr_multi = site
rt_attr_multi = param

}

searchd
{
#listen = 3306:mysql41
listen = 9312
listen = 9306:mysql41
log = /var/log/sphinx/searchd.log
query_log = /var/log/sphinx/query.log
pid_file = /var/run/sphinx/searchd.pid
binlog_path = /var/lib/sphinx

read_timeout = 5
max_children = 30
# max_matches = 1000
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = threads # for RT to work
binlog_max_log_size = 512M
# 2 - flush every transaction, sync every second. Good performance, and every committed transaction is guaranteed to be saved in case of daemon crash.
# 1 - flush and sync every transaction. Worst performance, but every committed transaction data is guaranteed to be saved
binlog_flush = 2
rt_flush_period = 3600
}

# 22
indexer
{
lemmatizer_cache = 128M
}
common
{
lemmatizer_base = /etc/sphinx/bx/dicts
}

Файл wordforms.txt создавали сами. Его содержимое:


найк > nike

Не работает. В чем я ошибаюсь?

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий