But recently I found that incremental ones cannot always be searched. I looked at the operation log today and got the following prompt:
[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 to /dev/shm/sphinx/data/article_delta.old.spa failed: No such file or directory
In order to improve the incremental indexing speed, I stored the incremental index in /dev/shm and looked at the contents of the /dev/shm/sphinx/data/ directory:
-rw-r--r-- 1 root root 385762 Apr 17 19:21 article_delta.new.spd
-rw-r--r-- 1 root root 3713 Apr 17 19:21 article_delta.new.sph
-rw-r--r-- 1 root root 46260 Apr 17 19:21 article_delta.new.spi
-rw-r--r-- 1 root root 0 Apr 17 19:21 article_delta.new.spk
-rw-r--r-- 1 root root 0 Apr 17 19:21 article_delta.new.spm
-rw-r--r-- 1 root root 261402 Apr 17 19:21 article_delta.new.spp
Strange, there should be article_delta.spd and other files, not .new document.
The --rotate parameter is used for incremental indexing.
Copy the code The code is as follows:
bin/indexer --rotate news_delta
bin/indexer --rotate article_delta
Copy the code The 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")
The above introduces a problem of superhidden.exe sphinx incremental index, including the content of superhidden.exe. I hope it will be helpful to friends who are interested in PHP tutorials.