lucene-solr-user mailing list archives

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

Hi

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

Cheers! 

Hana

-- 
View this message in context: http://www.nabble.com/Date-Format-in-QueryParsing-tp21505639p21505639.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message