简体   繁体   English

使用algolia(php网站)-寻找最佳的更新/删除方法?

[英]Using algolia (php website) - Looking for the best update/delete method?

I have looked into how I could specify objectID when initially indexing objects, but this doesn't seem possible. 我研究了最初为对象建立索引时如何指定objectID,但这似乎是不可能的。 As the system has no knowledge of Algolia auto-generated objectID's - what is the best way to deal with update/delete actions? 由于系统不了解Algolia自动生成的objectID,因此处理更新/删除操作的最佳方法是什么?

It is possible to specify your ObjectID . 可以指定您的ObjectID

Quoting from the docs : 文档引用:

Every object is uniquely identified by an objectID. 每个对象都由一个objectID唯一标识。 If you don't provide one, Algolia will generate one automatically. 如果您不提供,则Algolia会自动生成一个。 However, it will be easier to remove or update records if you have stored a unique identifier in the objectID attribute. 但是,如果您在objectID属性中存储了唯一的标识符,则将更容易删除或更新记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM