如何在 solr 中更改 defaults.last_index_time 格式
How to change defaults.last_index_time format in solr
我正在使用 Apache Solr 6.2,defaults.last_index_time 字段需要时间戳或核心配置需要单独的字段。
默认值为 defaults.last_index_time=2016-09-19 14:55:17 。
我需要类似的东西
defaults.last_index_time=1474297085558
使用属性 Writer 将solr.Add元素中的last_index_time格式更改为DIH配置文件,直接在dataConfig元素下
<propertyWriter dateFormat="yyyy-MM-dd'T'HH:mm:ss.SSSXXX" type="SimplePropertiesWriter" />
在属性 Writer 中您可以指定您想要的格式。但看起来你想要以毫秒为单位的日期。因为没有可用的日期格式。
我正在使用 Apache Solr 6.2,defaults.last_index_time 字段需要时间戳或核心配置需要单独的字段。
默认值为 defaults.last_index_time=2016-09-19 14:55:17 。
我需要类似的东西
defaults.last_index_time=1474297085558
使用属性 Writer 将solr.Add元素中的last_index_time格式更改为DIH配置文件,直接在dataConfig元素下
<propertyWriter dateFormat="yyyy-MM-dd'T'HH:mm:ss.SSSXXX" type="SimplePropertiesWriter" />
在属性 Writer 中您可以指定您想要的格式。但看起来你想要以毫秒为单位的日期。因为没有可用的日期格式。