Thanks Shawn.
I stopped setting the parser as suggested.
I found that what I had to do is to just store Date objects in my
documents, then, at the last minute, when building a SolrDocument to
send, convert with DateField. When I Export to XML, I export to that
DateField string, then convert the z
On 1/12/2013 7:51 PM, Jack Park wrote:
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 in which the d
Thank you for the tips :)
Gary
Le 02/05/2012 21:26, Chris Hostetter a écrit :
: String dateString = "20101230";
: SimpleDateFormat sdf = new SimpleDateFormat("MMdd");
: Date date = sdf.parse(dateString);
: doc.addField("date", date);
:
: In the index, the date "20101230" is saved as "2010-1
: String dateString = "20101230";
: SimpleDateFormat sdf = new SimpleDateFormat("MMdd");
: Date date = sdf.parse(dateString);
: doc.addField("date", date);
:
: In the index, the date "20101230" is saved as "2010-12-29T23:00:00Z" ( because
: of GMT).
"because of GMT" is missleading and vague
upansky
-Original Message-
From: Jack Krupansky
Sent: Wednesday, May 02, 2012 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: question about dates
Oops... I meant to say that Solr doesn't *index* the trailing Z, but it is
"stored" (the stored value, not the indexed value.) Th
02, 2012 11:55 AM
To: solr-user@lucene.apache.org
Subject: Re: question about dates
The trailing "Z" is required in your input data to be indexed, but the Z is
not actually stored. Your query must have the trailing "Z" though, unless
you are doing a wildcard or prefix query
The trailing "Z" is required in your input data to be indexed, but the Z is
not actually stored. Your query must have the trailing "Z" though, unless
you are doing a wildcard or prefix query.
-- Jack Krupansky
-Original Message-
From: G.Long
Sent: Wednesday, May 02, 2012 11:18 AM
To: