A
A
alabs2017-08-11 04:18:21
Sphinx
alabs, 2017-08-11 04:18:21

How to restart real time index on Sphinx?

Good afternoon.
Worked with sphinx only on normal indexes.
Here I ran into a problem, I don’t know how to apply changes in sphinx after making changes to the config.
With the usual ones, I simply restarted the indexer, but here, after making changes, they do not take effect. I tried to run the indexer, but it swears at the lack of regular indexes.
Restarting searchd doesn't help.

index rt_text
{
  type				= rt
  rt_mem_limit		= 128M
  path				= /var/www/site/data/www/site.ru/files/rt/rt_text

    morphology			= stem_en, stem_ru 
    min_word_len		= 3 
    min_infix_len		= 1 
    index_exact_words 	= 1 
    dict              	= keywords
  
  mlock          		= 1
  
  rt_field			= title
  rt_field			= text
  rt_field			= autor
  
  rt_attr_string		= title
  rt_attr_string		= text
  rt_attr_string		= autor
}


indexer
{
  mem_limit		= 128M
}


searchd
{
  listen			= 9312
  listen			= 9306:mysql41
  log				= /var/log/sphinx/searchd.log
  query_log		= /var/log/sphinx/query.log
  read_timeout	= 5
  max_children	= 30
  pid_file		= /var/run/sphinx/searchd.pid
  seamless_rotate	= 1
  preopen_indexes	= 1
  unlink_old		= 1
  workers			= threads # for RT to work
  binlog_path		= /var/lib/sphinx/
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alabs, 2017-08-11
@alabs

Solved the problem by simply creating a similar index with a different name. If there are better solutions, please let me know.

P
Puma Thailand, 2017-08-13
@opium

whatever you change

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question