我想知道如何删除 Azure 搜索索引中的特定文档。
我想通过使用 REST API 使用“id”来删除文档。我已经搜索过,但找不到方法。
{
"@odata.context": "https://xxxx/$metadata#docs(*)",
"value": [
{
"@search.score": 1,
"id": "16",
"questions": [
"Question"
],
"answer": "Answer",
"source": "https://azure.microsoft.com/ja-jp/support/faq/",
"keywords": [],
"alternateQuestions": null
},
Run Code Online (Sandbox Code Playgroud)
例如,我只想删除id为16的文档。我不想删除整个索引,只想删除文档。
如果有人知道怎么做,请提供一个 REST API 示例。