Query DSL: not filter with inner filter that uses array element fails, closes #1987.

(without the `filter` wrapper)
This commit is contained in:
Shay Banon 2012-05-30 00:17:21 +02:00
parent 398e8a597f
commit 5b6b94cf83
1 changed files with 4 additions and 0 deletions

View File

@ -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();