Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过批量发布文档将数据上传到 cloudsearch。如果我之后立即执行搜索,有时文档已编入索引并且可以找到,而有时它们将在几秒钟后可用。有没有办法轮询或等待文档提交到索引?
不幸的是,无法通知文档已被索引。您可以轮询域以查看给定文档是否已添加或删除。轮询以查看文档是否已更新并不是一项简单的任务,但如果您知道已更改的内容,仍然可以完成。无论哪种方式,这个问题都没有优雅的解决方案。