小编Gon*_*Gon的帖子

如何在 Azure Search REST API 上使用“id”删除特定文档?

我想知道如何删除 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 示例。

azure azure-cognitive-search

3
推荐指数
1
解决办法
2736
查看次数

标签 统计

azure ×1

azure-cognitive-search ×1