我在 Cosmos DB 中有一个集合,其中包含不同类型(和模式)的文档:
{
"partKey": "...",
"type": "type1",
"data": {
"field1": 123,
"field2": "sdfsdf"
}
}
{
"partKey": "...",
"type": "type2",
"data": {
"field3": ["123", "456", "789"]
}
}
我正在尝试创建一个复合索引[/type, /data/field3/[]/?]
,但遇到了一个问题:
The indexing path '\\/data\\/field3\\/[]\\/?' could not be accepted, failed near position '15'. Please ensure that the path is a valid path. Common errors include invalid characters or absence of quotes around labels