But recently found that the increment is always search is not, today read the next run log, there are the following tips:
[Sun APR 17 19:30:01.876 2011] [3400] warning:rotating index ' news_delta ': cur to old rename Failed:rename/dev/shm/sphinx/data/news_delta.spa To/dev /shm/sphinx/data/news_delta.old.spa failed:no such file or directory
[Sun APR 17 19:30:01.881 2011] [3400] warning:rotating index ' article_delta ': cur to old rename Failed:rename/dev/shm/sphinx/data/article_delta.spa t O/dev/shm/sphinx/data/article_delta.old.spa failed:no such file or directory
To increase the incremental indexing speed, I kept the incremental index in/DEV/SHM and looked at the contents of the following/dev/shm/sphinx/data/directory:
-rw-r--r--1 root root 385762 Apr 19:21 article_delta.new.spd
-rw-r--r--1 root root 3713 Apr 19:21 ARTICLE_DELTA.NEW.SPH
-rw-r--r--1 root root 46260 Apr 19:21 Article_delta.new.spi
-rw-r--r--1 root root 0 Apr 19:21 article_delta.new.spk
-rw-r--r--1 root root 0 Apr 19:21 article_delta.new.spm
-rw-r--r--1 root root 261402 Apr 19:21 article_delta.new.spp
Strange, should have article_delta.spd and so on file, should not be a. new file.
The--rotate parameter is used when you increment the index.
Copy CodeThe code is as follows:
Bin/indexer--rotate News_delta
Bin/indexer--rotate Article_delta
When rotate, you need to rename the original Article_delta.spa to Article_delta.old.spa, and then rename the Article_delta.new.spa to Article_ Delta.spa, then notify Searchd restart complete rotate.
Thought should be a few days before the morning restart the machine, the original files are lost, resulting in rotate: (
Workaround:
Run: Bin/indexer Article_delta
Files such as ARTICLE_DELTA.SPD,SPH are created.
Re-run: bin/indexer article_delta--rotate
Run log prompt: Rotating index ' Article_delta ': Success
It's normal!
The command to do the incremental index is written in a script, put in the rc.local, so restart the machine will not be the problem again.
Copy CodeThe code is as follows:
echo "Start:" $ (date + "%y-%m-%d%h:%m:%s")
Cd/usr/local/coreseek/bin
./indexer News_delta
./indexer Article_delta
echo "End:" $ (date + "%y-%m-%d%h:%m:%s")
http://www.bkjia.com/PHPjc/323698.html www.bkjia.com true http://www.bkjia.com/PHPjc/323698.html techarticle but recently found that the increment is always search is not, today read the next run log, there are the following tips: [Sun Apr 19:30:01.876] [3400] warning:rotating index ' news_delta ': cur to OL D .....