使用 algolia(php 网站)- 寻找最好的 update/delete 方法?

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

我研究了如何在最初索引对象时指定 objectID,但这似乎不可能。由于系统不知道 Algolia 自动生成的对象 ID - 处理 update/delete 操作的最佳方法是什么?

可以指定您的ObjectID

引自docs

Every object is uniquely identified by an objectID. If you don’t provide one, Algolia will generate one automatically. However, it will be easier to remove or update records if you have stored a unique identifier in the objectID attribute.