sphinx报错:FATAL: failed to merge index: docinfo storage on non-empty indexes must be the same

来源:互联网 发布:数据库服务器cpu过高 编辑:程序博客网 时间:2024/06/07 03:48

今天在测试sphinx的时候,有个主索引+增量索引的合并的操作,

/usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --merge src_4 src_delta --rotate,

执行这个命令后报错:

FATAL: failed to merge index 'src_delta' into index 'src_4': docinfo storage on non-empty indexes  must be the same (dst docinfo 1, docs 1, src docinfo 2, docs 1

 

后查资料发现,当源索引是空的索引时,执行合并索引的操作会报这个错误,因为测试机上的src_4是空的,所以报错了。

后改成与src_1合并(非空),执行OK。

 

参考资料:http://www.sphinxsearch.com/forum/view.html?id=1751

原创粉丝点击