Query DSL: not filter with inner filter that uses array element fails, closes #1987.
(without the `filter` wrapper)
This commit is contained in:
parent
398e8a597f
commit
5b6b94cf83
|
@ -67,6 +67,10 @@ public class NotFilterParser implements FilterParser {
|
||||||
// its the filter, and the name is the field
|
// its the filter, and the name is the field
|
||||||
filter = parseContext.parseInnerFilter(currentFieldName);
|
filter = parseContext.parseInnerFilter(currentFieldName);
|
||||||
}
|
}
|
||||||
|
} else if (token == XContentParser.Token.START_ARRAY) {
|
||||||
|
filterFound = true;
|
||||||
|
// its the filter, and the name is the field
|
||||||
|
filter = parseContext.parseInnerFilter(currentFieldName);
|
||||||
} else if (token.isValue()) {
|
} else if (token.isValue()) {
|
||||||
if ("_cache".equals(currentFieldName)) {
|
if ("_cache".equals(currentFieldName)) {
|
||||||
cache = parser.booleanValue();
|
cache = parser.booleanValue();
|
||||||
|
|
Loading…
Reference in New Issue