@Override
public Query getNewRangeQuery(String field, String part1, String part2, boolean startInclusive, boolean endInclusive)
throws IOException {
FieldTypeDefinition fieldTypeDefinition = getFieldTypeDefinition(field);
if (fieldTypeDefinition != null && fieldTypeDefinition.isNumeric()) {
NumericFieldTypeDefinition numericFieldTypeDefinition = (NumericFieldTypeDefinition) fieldTypeDefinition;
return numericFieldTypeDefinition.getNewRangeQuery(field, part1, part2, startInclusive, endInclusive);
}
return null;
}