Solr last_index_time 时区格式不同所以输出错误

Dee*_*yal 2 solr

几天前我开始研究 solr,今天我面临 deltaQuery 的问题。我的服务器时区是 IST,mysql 也在 IST 中给出默认输出。但 solr dataimport.properties 文件存储 UTC 时区。

问题是当我选择查询时B.modified_on >'${dataimporter.last_index_time}',由于时区的原因,时间比较错误。solr 日志为:- B.modified_on>'2016-09-23 07:39:10',服务器时间为。$ 日期 9 月 23 日星期五 15:22:20 IST 2016

请建议如何更改 IST 中的 solr 时区或任何其他答案。我无法确定我的 linux 服务器时区。

Jam*_*gyu 5

Solr 日志默认采用 UTC。要将其更改为 IST,请编辑 solr.in.sh 文件以包含以下行:

# By default the start script uses UTC; override the timezone if needed

SOLR_TIMEZONE="IST"
Run Code Online (Sandbox Code Playgroud)