从 CosmosDB 导入到 Azure 搜索时,找不到 id 以外的字段
No fields beyond id found when importing into Azure Search from CosmosDB
我正在尝试将数据从 cosmosdb 导入到 azure 搜索中,但导入向导未检测到 id 以外的任何字段。如果我从 Azure Table 或示例数据集导入,则导入会按预期进行。有没有我忽略的东西,例如我在 cosmos 中的文档中的一组必填字段?
导入查询
SELECT c.id, c.first, c.last, c.address, c.city, c.state, c.zip, c.dob, c.sex, c._ts from c where c._ts > @HighWaterMark order by c._ts
Cosmos 文档
{
"_id" : "1d202fb9-f384-42f4-a5f8-bf729b776576",
"first" : "Mata",
"middle" : "Hari",
"last" : "Drentlaw",
"address" : "3226 16TH ST",
"city" : "QUEENS",
"state" : "PA",
"zip" : "10465",
"sex" : "O",
"dob" : "1984/03/01",
"dod" : null,
"language" : "HiriMotu",
"ssn" : "123456789",
"ethnicity" : "Asturian",
"ethnicityCode" : "2139-4",
"phone" : "1-555-867-5309",
"maritalStatus" : "Married",
"martialStatusCode" : "M",
"race" : "Georgetown"
}
原来这是一个 Mongo 数据库集合。目前,Azure 搜索索引器仅支持 "classic" Cosmos DB 集合。我们正在努力添加对 Mongo 数据库的支持。为帮助我们确定工作的优先级并获取状态更新,请投票支持 DocumentDB indexer should be able to index MongoDb collections UserVoice 建议。
我正在尝试将数据从 cosmosdb 导入到 azure 搜索中,但导入向导未检测到 id 以外的任何字段。如果我从 Azure Table 或示例数据集导入,则导入会按预期进行。有没有我忽略的东西,例如我在 cosmos 中的文档中的一组必填字段?
导入查询
SELECT c.id, c.first, c.last, c.address, c.city, c.state, c.zip, c.dob, c.sex, c._ts from c where c._ts > @HighWaterMark order by c._ts
Cosmos 文档
{
"_id" : "1d202fb9-f384-42f4-a5f8-bf729b776576",
"first" : "Mata",
"middle" : "Hari",
"last" : "Drentlaw",
"address" : "3226 16TH ST",
"city" : "QUEENS",
"state" : "PA",
"zip" : "10465",
"sex" : "O",
"dob" : "1984/03/01",
"dod" : null,
"language" : "HiriMotu",
"ssn" : "123456789",
"ethnicity" : "Asturian",
"ethnicityCode" : "2139-4",
"phone" : "1-555-867-5309",
"maritalStatus" : "Married",
"martialStatusCode" : "M",
"race" : "Georgetown"
}
原来这是一个 Mongo 数据库集合。目前,Azure 搜索索引器仅支持 "classic" Cosmos DB 集合。我们正在努力添加对 Mongo 数据库的支持。为帮助我们确定工作的优先级并获取状态更新,请投票支持 DocumentDB indexer should be able to index MongoDb collections UserVoice 建议。