lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hana <>
Subject Date Format in QueryParsing
Date Fri, 16 Jan 2009 18:26:44 GMT


When I parse DateRange query in a custom RequestHandler I get the date in
format yyyy-MM-dd'T'HH:mm:ss, but I would like it with the trailling 'Z' for
UTC time. Is there a way how to set the desired date format?

Here is a snippet of the code:

SolrParams p = req.getParams();
String query = p.get(CommonParams.Q);
Query q = QueryParsing.parseQuery(query, req.getSchema());
log.debug(q.toString()); // output the dates in yyyy-MM-dd'T'HH:mm:ss format



View this message in context:
Sent from the Solr - User mailing list archive at

View raw message