public Query toQuery(QueryParseContext parseContext) throws QueryParsingException, IOException {
Query query = null;
FieldMapper mapper = parseContext.fieldMapper(this.fieldName);
if (mapper != null) {
if (mapper instanceof DateFieldMapper) {
<BUG>if ((from instanceof Number || to instanceof Number) && timeZone != null) {
throw new QueryParsingException(parseContext,
"[range] time_zone when using ms since epoch format as it's UTC based can not be applied to [" + this.fieldName
+ "]");
}</BUG>
DateMathParser forcedDateParser = null;

public Query toQuery(QueryParseContext parseContext) throws QueryParsingException, IOException {
Query query = null;
FieldMapper mapper = parseContext.fieldMapper(this.fieldName);
if (mapper != null) {
if (mapper instanceof DateFieldMapper) {
DateMathParser forcedDateParser = null;
