首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用documentDB的Azure搜索找不到数据

使用documentDB的Azure搜索找不到数据
EN

Stack Overflow用户
提问于 2017-08-22 14:38:00
回答 1查看 505关注 0票数 1

这是我第一次使用Azure搜索。我使用生成的数据集遵循了示例。现在我想在我的数据库上实现Azure搜索。

这是我想要索引的集合中的一个项的示例。

代码语言:javascript
复制
{
"_id" : "Watch",
"name" : "Watch",
"cloudProvider" : "azure",
"channel" : "C6SELFQMD",
"services" : [
    "azure-backup",
    "azure-data-lake-analytics",
    "backup",
    "blobstorage",
    "site-recovery",
    "storage"
],
"__v" : 0

}

Azure search本身甚至不会检测到字段。

以下是我正在做的步骤:

如果我手动添加字段,它会返回无用的数据。有人知道为什么会这样吗?目前我的收藏中只有2件,但我不认为这是问题所在?

更新:所以问题是我的id前面有一个下划线("_id")。现在我正在尝试使用fieldMappings来解决这个问题。但是api的响应是:

代码语言:javascript
复制
{
    "error": {
        "code": "",
        "message": "Data source does not contain column '_id', which is required because it maps to the document key field 'id' in the index 'index'. Ensure that the '_id' column is present in the data source, or add a field mapping that maps one of the existing column names to 'id'."
    }
}
EN

回答 1

Stack Overflow用户

发布于 2017-08-23 03:41:59

Azure Search目前不支持Cosmos DB Table API帐户,这里似乎就是这种情况。

如果你想看到Azure Search支持的Table API,请投票给Azure Search should be able to index Cosmos DB Table API collections,以帮助我们确定工作的优先级。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45810496

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档