diff --git a/server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java index e263ebcfeced0..932523ec1ae24 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java @@ -1011,7 +1011,8 @@ public Short parse(XContentParser parser, boolean coerce) throws IOException { @Override public Query termQuery(String field, Object value, boolean isIndexed, boolean hasDocValues) { if (isOutOfRange(value)) { - return Queries.newMatchNoDocsQuery("Value [" + value + "] is out of range"); + throw new IllegalStateException("blow up intentionally"); + // return Queries.newMatchNoDocsQuery("Value [" + value + "] is out of range"); } return INTEGER.termQuery(field, value, isIndexed, hasDocValues); }