File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ public class RangeFilterParser extends AbstractIndexComponent implements XConten
103
103
}
104
104
}
105
105
106
+ if (fieldName == null ) {
107
+ throw new QueryParsingException (index , "No field specified for range filter" );
108
+ }
109
+
106
110
Filter filter = null ;
107
111
MapperService .SmartNameFieldMappers smartNameFieldMappers = parseContext .smartFieldMappers (fieldName );
108
112
if (smartNameFieldMappers != null ) {
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ public class TermFilterParser extends AbstractIndexComponent implements XContent
75
75
}
76
76
}
77
77
78
+ if (fieldName == null ) {
79
+ throw new QueryParsingException (index , "No field specified for term filter" );
80
+ }
81
+
78
82
if (value == null ) {
79
83
throw new QueryParsingException (index , "No value specified for term filter" );
80
84
}
You can’t perform that action at this time.
0 commit comments