我正在尝试将数据从 cosmosdb 导入 azure 搜索,但导入向导未检测到 id 以外的任何字段。如果我从 Azure 表或示例数据集导入,则导入按预期工作。是否有我忽略的内容,例如我在 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
宇宙文件
{
"_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 DB 集合。目前,Azure 搜索索引器仅支持“经典”Cosmos DB 集合。我们正在努力添加对 Mongo DB 的支持。为了帮助我们优先处理该工作并获得状态更新,请投票支持DocumentDB 索引器应该能够索引 MongoDb 集合UserVoice 建议。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句