有个人长的像洋葱,走着走着就哭了…….

filter 名称有@的 字段

Elasticsearch | 作者 platstar | 发布于2017年06月08日 | 阅读数:3631

名称有@的 字段要如何查? 
 
以下可查
{

"query": {
"bool": {
"must": [
{ "match_all": {} }
],
"filter": [ { "match": { "data.@request.data.@browser" : "Chrome" } } ]
} },
"from": 0, "size": 40
}

{

"query": {
"bool": {
"must": [
{ "match_all": {} }
],
"filter": [ { "match": { "data.@request.path" : "/default/exception" } } ]
} },
"from": 0, "size": 40
}


以下查詢不到

{

"query": {
"bool": {
"must": [
{ "match_all": {} }
],
"filter": [ { "match": { "data.@request.http_method" : "GET" } } ]
} },
"from": 0, "size": 40
}

{

"query": {
"bool": {
"must": [
{ "match_all": {} }
],
"filter": [ { "match": { "data.@request.port" : "51110" } } ]
} },
"from": 0, "size": 40
}
MAPPING.PNG
已邀请:

要回复问题请先登录注册