且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Azure Cosmos DB中深度搜索JSON?

更新时间:2021-07-02 22:30:54

您需要在查询中应用联接,因此,数组将被视为规范化实体,然后可以应用过滤器.

You need to apply a join on your query, so then you array will be treated as a normalized entity and then you can apply the filter.

select c.id, a.message
from c join a in c.activities
where CONTAINS(a.message,"activity")

更多信息