I am using Solr and I would like to add the last_update field in schema.xml where the default is the current date when the document is added or updated.
last_update
schema.xml
Do you have an idea how I can do this?
thanks
This is a supported script for DateField . The following should work:
<field name="last_update" type="date" indexed="true" stored="true" default="NOW" />