sphinx搜索数据文件
下面是sphinx的数据目录,索引后删除.tmp文件是否安全? searchd 会使用它们吗?
-rw-r--r-- 1 root root 24M Apr 27 21:34 myindex.spa -rw-r--r-- 1 root root 929M Apr 27 21:35 myindex.spd -rw-r--r-- 1 root root 409 Apr 27 21:35 myindex.sph -rw-r--r-- 1 root root 50M Apr 27 21:35 myindex.spi -rw-r--r-- 1 root root 0 Apr 27 21:34 myindex.spk -rw------- 1 root root 0 May 2 08:57 myindex.spl -rw-r--r-- 1 root root 0 Apr 27 21:33 myindex.spm -rw-r--r-- 1 root root 782M Apr 27 21:35 myindex.spp -rw-r--r-- 1 root root 17M Apr 27 21:35 myindex.sps -rw-r--r-- 1 root root 2.9G May 2 04:09 myindex.tmp.spa -rw-r--r-- 1 root root 82G May 2 13:03 myindex.tmp.spd -rw-r--r-- 1 root root 949M May 2 13:02 myindex.tmp.spi -rw-r--r-- 1 root root 0 May 2 04:09 myindex.tmp.spk -rw-r--r-- 1 root root 0 Apr 30 11:33 myindex.tmp.spl -rw-r--r-- 1 root root 0 May 2 04:07 myindex.tmp.spm -rw-r--r-- 1 root root 106G May 2 13:03 myindex.tmp.spp -rw-r--r-- 1 root root 2.1G May 2 04:07 myindex.tmp.sps -rw-r--r-- 1 root root 0 Apr 30 11:34 myindex.tmp.tmp0 -rw-r--r-- 1 root root 247G May 2 04:07 myindex.tmp.tmp1 -rw-r--r-- 1 root root 2.8G May 2 04:07 myindex.tmp.tmp2 -rw-r--r-- 1 root root 0 May 2 04:09 myindex.tmp.tmp8
below is sphinx's data directory, is it safe to delete the .tmp files after indexing? will searchd use them?
-rw-r--r-- 1 root root 24M Apr 27 21:34 myindex.spa -rw-r--r-- 1 root root 929M Apr 27 21:35 myindex.spd -rw-r--r-- 1 root root 409 Apr 27 21:35 myindex.sph -rw-r--r-- 1 root root 50M Apr 27 21:35 myindex.spi -rw-r--r-- 1 root root 0 Apr 27 21:34 myindex.spk -rw------- 1 root root 0 May 2 08:57 myindex.spl -rw-r--r-- 1 root root 0 Apr 27 21:33 myindex.spm -rw-r--r-- 1 root root 782M Apr 27 21:35 myindex.spp -rw-r--r-- 1 root root 17M Apr 27 21:35 myindex.sps -rw-r--r-- 1 root root 2.9G May 2 04:09 myindex.tmp.spa -rw-r--r-- 1 root root 82G May 2 13:03 myindex.tmp.spd -rw-r--r-- 1 root root 949M May 2 13:02 myindex.tmp.spi -rw-r--r-- 1 root root 0 May 2 04:09 myindex.tmp.spk -rw-r--r-- 1 root root 0 Apr 30 11:33 myindex.tmp.spl -rw-r--r-- 1 root root 0 May 2 04:07 myindex.tmp.spm -rw-r--r-- 1 root root 106G May 2 13:03 myindex.tmp.spp -rw-r--r-- 1 root root 2.1G May 2 04:07 myindex.tmp.sps -rw-r--r-- 1 root root 0 Apr 30 11:34 myindex.tmp.tmp0 -rw-r--r-- 1 root root 247G May 2 04:07 myindex.tmp.tmp1 -rw-r--r-- 1 root root 2.8G May 2 04:07 myindex.tmp.tmp2 -rw-r--r-- 1 root root 0 May 2 04:09 myindex.tmp.tmp8
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我非常确定 .tmp 文件是在您使用定义的
--rotate
选项进行索引时创建的。如果您查看它们的时间戳,您可以看到它们比当前使用的索引更新。轮换完成后,
tmp
文件将替换现有文件并删除现有文件。I'm pretty sure that the .tmp files are created while you're indexing with the
--rotate
option defined. If you look at the timestamp on them you can see they're newer than the current indexes being used.Once the rotate has completed the
tmp
files will replace the existing ones and the existing ones deleted.