mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Switched match query to phrase type so that multi term fields work
This commit is contained in:
parent
be8fa3778d
commit
57449d0322
2 changed files with 3 additions and 3 deletions
|
@ -448,12 +448,12 @@ define(function (require) {
|
|||
|
||||
_.each(value, function (clause) {
|
||||
var previous = _.find(filters, function (item) {
|
||||
return item && item.query.match[field] === clause;
|
||||
return item && item.query.match[field] === {query: clause, type: 'phrase'};
|
||||
});
|
||||
if (!previous) {
|
||||
var filter = { query: { match: {} } };
|
||||
filter.negate = operation === '-';
|
||||
filter.query.match[field] = clause;
|
||||
filter.query.match[field] = {query: clause, type: 'phrase'};
|
||||
filters.push(filter);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ define(function (require) {
|
|||
var key = _.keys(filter.query.match)[0];
|
||||
return {
|
||||
key: key,
|
||||
value: filter.query.match[key],
|
||||
value: filter.query.match[key].query,
|
||||
disabled: !!(filter.disabled),
|
||||
negate: !!(filter.negate),
|
||||
filter: filter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue