diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/RangeJsonFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/RangeJsonFilterParser.java index 0340f7a2e3e..70300ddd294 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/RangeJsonFilterParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/RangeJsonFilterParser.java @@ -100,6 +100,13 @@ public class RangeJsonFilterParser extends AbstractIndexComponent implements Jso } else { includeUpper = token == JsonToken.VALUE_TRUE; } + } else if ("gt".equals(currentFieldName)) { + if (jp.getCurrentToken() == JsonToken.VALUE_NULL) { + from = null; + } else { + from = jp.getText(); + } + includeLower = false; } else if ("gte".equals(currentFieldName)) { if (jp.getCurrentToken() == JsonToken.VALUE_NULL) { from = null;