使用documentDB的Azure搜索未找到数据

使用documentDB的Azure搜索未找到数据,azure,azure-cognitive-search,azure-cosmosdb,Azure,Azure Cognitive Search,Azure Cosmosdb,这是我第一次使用Azure搜索。我使用生成的数据集按照示例进行操作。现在我想在我的数据库上实现Azure搜索 这是我要索引的集合项的示例 { "_id" : "Watch", "name" : "Watch", "cloudProvider" : "azure", "channel" : "C6SELFQMD", "services" : [ "azure-backup", "azure-data-lake-analytics", "backup", "blobs

这是我第一次使用Azure搜索。我使用生成的数据集按照示例进行操作。现在我想在我的数据库上实现Azure搜索

这是我要索引的集合项的示例

{
"_id" : "Watch",
"name" : "Watch",
"cloudProvider" : "azure",
"channel" : "C6SELFQMD",
"services" : [
    "azure-backup",
    "azure-data-lake-analytics",
    "backup",
    "blobstorage",
    "site-recovery",
    "storage"
],
"__v" : 0
}

Azure搜索本身甚至没有检测到字段

以下是我正在执行的步骤:

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

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

{
    "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'."
    }
}

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


如果您想查看Azure Search支持的表API,请投票支持,以帮助我们确定该工作的优先级

从值($t、$v等)来看,数据源似乎不是一个使用DocumentDB API的Cosmos DB帐户。你能检查一下Cosmos DB帐户的API吗?我100%确定它运行在带有DocumentDB API的Cosmos DB帐户上。是否会因为我有一个属性“\u id”而触发此错误?我认为是下划线造成了问题。
是否会触发此错误,因为我有一个属性“\u id”
->,这肯定是真的,因为字段名不能以下划线开头。请参阅此处的命名规则:。我之所以这样评论是因为$v,$t的财产。我在Cosmos DB帐户中看到了这些表APItopic@stefmorren你找到解决办法了吗?