Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了增量索引。并使用以下命令合并它们
sudo /usr/local/sphinx/bin/indexer --merge messagecenter_quotations_reply messagecenter_quotations_reply_delta --rotate
但它只有在我重新启动 sphinx 时才会合并。如果我在不重新启动 sphinx 的情况下运行此命令,我不会得到任何结果。
索引器向 searchd 守护程序发送一个 SIGHUP 以告诉它重新启动。它通过检查 sphinx 配置中设置的 PID 文件来找到要发出信号的进程。检查配置文件的“searchd”部分的“pid_file”值,并确保将其设置为索引器可读的文件。此外,请确保您运行的索引器进程具有足够的权限来向 searchd 进程发出信号;例如,如果 searchd 以 root 身份运行,您还需要以 root 身份运行索引器。