field,
(query.getLowerTerm() == null ? Float.MIN_VALUE : Float
.parseFloat(query.getLowerTerm())), (query
.getUpperTerm() == null ? Float.MAX_VALUE
: Float.parseFloat(query.getUpperTerm())),
query.includesLower(), query.includesUpper());
case DOUBLE:
return NumericRangeQuery.newDoubleRange(field,
(query.getLowerTerm() == null ? Double.MIN_VALUE
: Double.parseDouble(query.getLowerTerm())),
(query.getUpperTerm() == null ? Double.MAX_VALUE