lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Park <jackp...@topicquests.org>
Subject Question about dates and SolrJ
Date Sun, 13 Jan 2013 02:51:32 GMT
My work engages SolrJ, with which I send documents off to Solr 4 which
properly store, as viewed in the admin panel, as this example:
2013-02-04T02:11:39.995Z

When I retrieve a document with that date, I use the SolrDocument
returned as a Map<String,Object> in which the date now looks like
this:
Sun Feb 03 18:11:39 PST 2013

I am thinking that I am missing something in the SolrJ configuration,
though it could be in how I structure the query; for now, here is the
simplistic way I setup SolrJ:

HttpSolrServer server = new HttpSolrServer(solrURL);
server.setParser(new XMLResponseParser())

Is there something I am missing to retain dates as Solr stores them?

Many thanks in advance
Jack

Mime
View raw message