我已經按照這裏的獅身人面像手冊:http://sphinxsearch.com/docs/current.html#delta-updates關於如何對您的索引執行增量更新。獅身人面像索引器三角洲 - 旋轉
我的searchd正在運行正確的配置文件。 索引器以前運行創建主索引。
當我運行這個命令:
indexer -c /home/brandon/workspace/gallery/server/lib/sphinx/sphinx.conf --rotate delta
我得到這樣的結果:
using config file '/home/brandon/workspace/gallery/server/lib/sphinx/sphinx.conf'...
read 0.1 of 0.1 MB, 100.0% done
merged 10.8 Kwords
merged in 0.010 sec
total 389 reads, 0.000 sec, 2.0 kb/call avg, 0.0 msec/call avg
total 7 writes, 0.000 sec, 78.6 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=28039).
一切看起來好像它的工作,主要指標應該已經更新。然後我去我的搜索欄,但它沒有更新,因爲我無法搜索新項目。
有什麼建議嗎?
非常好。這似乎是我的問題。 – lockdown
或者您可以將delta索引合併到主索引中,這是我認爲大多數人所做的。 – Nate