Solr does not save time in UTC format

If I defined a field of type Solr.DateField, I read SOLR, which always saves it in GMT. But I see that SOLR just takes the time defined in my database and writes it without conversion.

Is there any configuration parameter for it?

+5
source share
5 answers

As far as I know, Solr stores dates exactly the same as you feed it, apart from the time zone information. This is for you to convert from / to UTC. Here is a forum topic that confirms this .

For example, here are some conversion procedures for PHP .

0
source

As far as I know, ONLY dateformat SOLR will accept the following:

YYYY-MM-DDTHH: MM: SS.000Z ( Z !)

+5

, SOLR , .

! , UTC, , UTC SOLR:

"2013-02-07T11: 21: 51Z + 8-"

, "Z + 8HOUR" PST UTC. DateMath .

+1

, , , SOLR, , , .

0

UTC. solr , UTC.

, , , UTC. , solr , UTC....

( ) , UTC... , , ... ops, . , .

0

All Articles