刷新 Azure 搜索索引

Refresh an Azure search index

我最近一直在探索 Azure 搜索,因为我想在我们的一些应用程序中使用它。我创建了一个索引,导入了数据并开始使用 Search ExplorerREST API 查询数据.一切都很好。

我更改了基础数据以测试模糊搜索 功能。但是,由于返回的数据仍然是旧数据,我得到的结果不正确。我最终找到了如何从 Azure 门户 强行刷新基础数据,但是有没有办法使用 REST API,或以某种方式自动执行此操作。我不想继续手动刷新 Azure 搜索索引

An indexer normally runs once, immediately after it is created. You can run it again on demand using the portal, the REST API, or the .NET SDK. You can also configure an indexer to run periodically on a schedule.

源数据会随时间发生变化,您希望 Azure 认知搜索索引器自动处理更改后的数据。 Schedule indexers in Azure Cognitive Search,您可以在其中设置自定义间隔(5 分钟到 24 小时之间)。