es如何查询某参数中的参数

es如何查询某参数中的参数

"ipAddr" : "1*******",
"result" : {
  "code" : 200,
  "data" : """{"msg":"ok","code":1,"data":"{\"returnCode\":\"0\",\"data\":        [],\"message\":\"部分成功,上游数据服务接口异常:没有找到匹配的  queryTypeCode\"}",

  "status":200}""",
  "signature" : "***************"
  },
"apiMethod" : "GET",
"apiVersion" : "1",
"apiUrl" : "/****/****",
"appType" : "1"

这种情况下我要怎么判断result中的code参数(用es语句写)

回答

差不多这样子, es可以直接访问json

{"query":{"match":{"result.code":200}}}
以上是es如何查询某参数中的参数的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>