@@ -45,10 +45,6 @@ public class RangeQueryBuilder extends AbstractQueryBuilder<RangeQueryBuilder> i
4545
4646 public static final ParseField LTE_FIELD = new ParseField ("lte" );
4747 public static final ParseField GTE_FIELD = new ParseField ("gte" );
48- public static final ParseField FROM_FIELD = new ParseField ("from" ).withAllDeprecated ();
49- public static final ParseField TO_FIELD = new ParseField ("to" ).withAllDeprecated ();
50- private static final ParseField INCLUDE_LOWER_FIELD = new ParseField ("include_lower" ).withAllDeprecated ();
51- private static final ParseField INCLUDE_UPPER_FIELD = new ParseField ("include_upper" ).withAllDeprecated ();
5248 public static final ParseField GT_FIELD = new ParseField ("gt" );
5349 public static final ParseField LT_FIELD = new ParseField ("lt" );
5450 private static final ParseField TIME_ZONE_FIELD = new ParseField ("time_zone" );
@@ -367,15 +363,7 @@ public static RangeQueryBuilder fromXContent(XContentParser parser) throws IOExc
367363 if (token == XContentParser .Token .FIELD_NAME ) {
368364 currentFieldName = parser .currentName ();
369365 } else {
370- if (FROM_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
371- from = maybeConvertToBytesRef (parser .objectBytes ());
372- } else if (TO_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
373- to = maybeConvertToBytesRef (parser .objectBytes ());
374- } else if (INCLUDE_LOWER_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
375- includeLower = parser .booleanValue ();
376- } else if (INCLUDE_UPPER_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
377- includeUpper = parser .booleanValue ();
378- } else if (AbstractQueryBuilder .BOOST_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
366+ if (AbstractQueryBuilder .BOOST_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
379367 boost = parser .floatValue ();
380368 } else if (GT_FIELD .match (currentFieldName , parser .getDeprecationHandler ())) {
381369 from = maybeConvertToBytesRef (parser .objectBytes ());
0 commit comments