我正在尝试使用AWS Developer Console中的仪表板在嵌套字段上创建索引 . 例如 . 如果我有以下架构:
{ 'id': 1,
'nested': {
'mode': 'mode1',
'text': 'nice text'
}
}
我能够在 nested.mode
上创建索引,但每当我按索引进行查询时,什么都没有回来 . 这让我觉得DynamoDB在字段名 nested.mode
而不是 nested
的 mode
字段上创建了索引 . 任何提示重新 . 我可能做错了什么?
1 回答
您不能(当前)从嵌套属性创建二级索引 . 来自Improving Data Access with Secondary Indexes in DynamoDB documentation(强调我的):
但是,你可以create an index on any top level JSON element .