Remove _type term filters from cluster alert watches (#38819) (#38826)

Backport of https://github.com/elastic/elasticsearch/pull/38819. Original message:

This PR removes usages of the `_type` field in `_search` requests issued from Monitoring code.
This commit is contained in:
Shaunak Kashyap 2019-02-12 19:54:36 -08:00 committed by GitHub
parent 57f69082fd
commit a9178b3239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 52 deletions

View File

@ -47,19 +47,8 @@
} }
}, },
{ {
"bool": { "term": {
"should": [ "type": "cluster_stats"
{
"term": {
"_type": "cluster_state"
}
},
{
"term": {
"type": "cluster_stats"
}
}
]
} }
}, },
{ {

View File

@ -40,19 +40,8 @@
} }
}, },
{ {
"bool": { "term": {
"should": [ "type": "cluster_stats"
{
"term": {
"_type": "cluster_stats"
}
},
{
"term": {
"type": "cluster_stats"
}
}
]
} }
}, },
{ {

View File

@ -44,19 +44,8 @@
} }
}, },
{ {
"bool": { "term": {
"should": [ "type": "kibana_stats"
{
"term": {
"_type": "kibana_stats"
}
},
{
"term": {
"type": "kibana_stats"
}
}
]
} }
} }
] ]

View File

@ -44,19 +44,8 @@
} }
}, },
{ {
"bool": { "term": {
"should": [ "type": "logstash_stats"
{
"term": {
"_type": "logstash_stats"
}
},
{
"term": {
"type": "logstash_stats"
}
}
]
} }
} }
] ]