且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Azure搜索上载文档后,可以将其删除吗?

更新时间:2023-02-14 09:15:20

我在Azure搜索团队中工作.一旦从索引API获取成功代码(HTTP 201),就意味着文档已成功建立索引.这意味着该文档存在于内部数据结构中,并且可以删除.已索引文档可能可能无法立即用于搜索,因为这需要内部刷新索引.

I work on the Azure Search team. Once you get a success code (HTTP 201) from the indexing API it implies that the document has been indexed successfully. This means that the document exists in the internal data structures and can be deleted. The indexed document might not be available for searching immediately as that requires an internal refresh of the index.

删除是懒惰的,即文档首先被标记为删除,然后最终从索引中删除以提高性能.这意味着在执行删除操作后几秒钟,删除的文档可能仍会显示在搜索结果中.我希望这能回答您的问题.

Deletion is lazy i.e. documents are first marked for delete and eventually removed from the index for performance. This means that the deleted documents might still show up in search results for a few seconds after executing the delete. I hope this answers your question.