我可以使用 sphinx 的增量索引来更新现有记录吗?
我可以在我的数据库数据中添加一个布尔字段,称为“已更新”之类的东西吗?如果它是真的(这将用于更新或添加的记录),请在我的增量索引中重新索引它?我问的原因是我相信更新记录的索引将位于我的主索引和增量索引中。
编辑:看起来如果我有一个在我的主索引上使用这个布尔值的killlist,我可以做到这一点?
Could I add a boolean field to my database data called something like "updated" and if it is true (which it would be for updated or added records) reindex it in my delta index? The reason I ask is that I believe my index for updated records would be in my main and delta indexes.
Edit: Looks like I could do this if I had a killlist that used this boolean on my main index?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是可能的,这就是创建索引合并的原因,以便将“增量”合并回主索引。
只要您有方法选择需要创建到“增量”索引的数据部分,就可以了。
http://www.sphinxsearch.com/docs/current.html#delta-更新
Yes, it is possible, and this is why index merging was created in order to merge the "delta" back to the main index.
As long as you have method to select the portion of data that need to be created to the "delta" index, it would be okay.
http://www.sphinxsearch.com/docs/current.html#delta-updates