请帮助我,我有这个产品文档与嵌套字段“attr”:
{"title" : "Televisor № 1", "code" : 1, "attr" : [{"key" : "resolution", "value" : ["1920*1080"]}, {"key" : "network", "value" : ["wi-fi", "lan"]}, {"key" : "diagonal", "value" : [27]}]},
{"title" : "Televisor № 2", "code" : 2, "attr" : [{"key" : "resolution", "value" : ["800*600"]}, {"key" : "network", "value" : ["wi-fi"]}, {"key" : "diagonal", "value" : [20]}]},
{"title" : "Televisor № 3", "code" : 3, "attr" : [{"key" : "resolution", "value" : ["640*480"]}, {"key" : "network", "value" : ["lan"]}, {"key" : "diagonal", "value" : [18]}]},
我如何选择电视
where
resolution IN ("1920*1080")
AND
network IN ("wi-fi", "lan")
AND
diagonal > 20