mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[courier] remove use of filtered_query
This commit is contained in:
parent
9ad823923d
commit
ff832a66a8
1 changed files with 14 additions and 8 deletions
|
@ -321,14 +321,20 @@ define(function (require) {
|
|||
});
|
||||
|
||||
flatState.body.query = {
|
||||
filtered: {
|
||||
query: flatState.body.query,
|
||||
filter: {
|
||||
bool: {
|
||||
must: _(flatState.filters).filter(filterNegate(false)).map(cleanFilter).value(),
|
||||
must_not: _(flatState.filters).filter(filterNegate(true)).map(cleanFilter).value()
|
||||
}
|
||||
}
|
||||
bool: {
|
||||
must:
|
||||
[flatState.body.query]
|
||||
.concat(
|
||||
_(flatState.filters)
|
||||
.filter(filterNegate(false))
|
||||
.map(cleanFilter)
|
||||
.value()
|
||||
),
|
||||
|
||||
must_not:
|
||||
_(flatState.filters)
|
||||
.filter(filterNegate(true))
|
||||
.map(cleanFilter).value()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue