我可以使用 sphinx 的增量索引来更新现有记录吗?

发布于 2024-09-12 16:26:33 字数 163 浏览 6 评论 0原文

我可以在我的数据库数据中添加一个布尔字段,称为“已更新”之类的东西吗?如果它是真的(这将用于更新或添加的记录),请在我的增量索引中重新索引它?我问的原因是我相信更新记录的索引将位于我的主索引和增量索引中。

编辑:看起来如果我有一个在我的主索引上使用这个布尔值的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

余生一个溪 2024-09-19 16:26:33

是的,这是可能的,这就是创建索引合并的原因,以便将“增量”合并回主索引。

只要您有方法选择需要创建到“增量”索引的数据部分,就可以了。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文