Java Solr架构中字段的默认值可以是当前日期?
我正在使用Solr,我想在Java Solr架构中字段的默认值可以是当前日期?,java,solr,Java,Solr,我正在使用Solr,我想在schema.xml中添加一个字段last\u update,其中默认值将是添加或更新文档的当前日期 你知道我该怎么做吗 谢谢这是我的荣幸。以下方面应起作用: <field name="last_update" type="date" indexed="true" stored="true" default="NOW" />
schema.xml
中添加一个字段last\u update
,其中默认值将是添加或更新文档的当前日期
你知道我该怎么做吗
谢谢这是我的荣幸。以下方面应起作用:
<field name="last_update" type="date" indexed="true" stored="true" default="NOW" />