Re: incorrect datetime to use now function

2013-03-07 Thread Miguel
Hi Cris I've used TZ param with UpdateXmlMessages and data are indexed with default GMT value on field timestamp, but one hour less than current date system. I am doing test using command curl, so: /curl http://10.240.234.133:8080/solr/update?TZ=Europe/Madrid --data-binary @data.xml -H "

Re: incorrect datetime to use now function

2013-03-06 Thread Chris Hostetter
: I've used this configuration to my timestamp field and it's works : : that is *really* not a good idea ... doing something like that means you will be putting incorrect data into your index, saying a doc was added an hour lafter it realy was, and assuming that later when clients query

Re: incorrect datetime to use now function

2013-03-05 Thread Miguel
thanks Cris I've used this configuration to my timestamp field and it's works default="NOW+1HOUR" multiValued="false"/> Anyway, I would like to know possible configuration of TZ parameter. When you speak "clients can specify a "TZ" param", this means it is possible configure TZ paramete

Re: incorrect datetime to use now function

2013-03-05 Thread Chris Hostetter
: when I've checked the new data, I see datetime value have one hour less than : current date. Please note the documentation about DateField (and TrieDateField which extends it)... https://lucene.apache.org/solr/4_1_0/solr-core/org/apache/solr/schema/DateField.html The response format is *alwa

incorrect datetime to use now function

2013-03-05 Thread Miguel
Hi I am using timestamp field configured in the schema, so this way: default="NOW" multiValued="false"/> when I've checked the new data, I see datetime value have one hour less than current date. I though it was problem on java configuration so I include in JAVA_OPTS = -Duser.timezone=Euro