Perhaps an UpdateProcessor is what you need?
https://lucene.apache.org/solr/7_7_0//solr-core/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html
 
<https://lucene.apache.org/solr/7_7_0//solr-core/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html>
https://lucene.apache.org/solr/guide/7_7/update-request-processors.html 
<https://lucene.apache.org/solr/guide/7_7/update-request-processors.html> 

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 8. apr. 2019 kl. 12:38 skrev Miettinen Jaana (STAT) <jaana.mietti...@stat.fi>:
> 
> Dear recipient,
> 
> I have a problem in solr: I should add several (old) time stamps into my solr 
> documents, but all of them are in  local time (UTC+2 or UTC+3 depending on 
> day-light-saving situation). As default solr excepts all time stamps to be in 
> UTC-time and adds the 'Z'-character into the end of the time stamp-strings to 
> indicate, that the date should be considered as UTC-time.
> 
> Is it possible to change this 'Z'-notation ? Either I would want to get rid 
> of that 'Z' or change it to denote UTC+2.
> 
> I noticed that there's variable SOLR_TIMEZONE in 
> solr-7.6.0/bin/solr.in.sh-file. I changed it to  SOLR_TIMEZONE="EST", 
> re-created my solr-servers, but nothing changed. Why was that configuration 
> file ignored (I also changed the port to check whether it was ignored really) 
> ? And what is the purpose of  SOLR_TIMEZONE-variable ?
> 
> Br, Jaana Miettinen

Reply via email to