本文介绍了将数据添加到SQL时,Sphinx自动更新是否为索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于添加新的SQL数据时Sphinx是否会自动更新其索引,还是必须专门告诉它重新索引数据库,我感到好奇.

I am curious as to whether or not Sphinx will auto update its index when you add new SQL data or whether you have to tell it specifically to reindex your db.

如果没有,是否有人举过一个示例,说明如何在数据库数据更改时自动执行此过程?

If it doesn't, does anyone have an example of how to automate this process when the database data changes?

推荐答案

有关实时索引的Sphinx文档部分

因此,要动态更新索引,您只需进行类似的查询

So to update an index on the fly you would just need to make a query like

{INSERT | REPLACE} INTO index [(column, ...)]
VALUES (value, ...)
[, (...)]

这篇关于将数据添加到SQL时,Sphinx自动更新是否为索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 07:09