If you are using the DataImportHandler, you can leverage on of the
transformers, such as the DateFormatTransformer:
http://wiki.apache.org/solr/DataImportHandler#DateFormatTransformer
If you are updating documents directly you can define a regex
transformation in your schema.xml:
I think copying to a new Solr date field is your best bet, because then you
have the flexibility to do date range facets in the future.
If you can re-index, and are using Data Import Handler, Jim Musil's
suggestion is just right.
If you can re-index, and are not using Data Import Handler:
-
: Monday, January 26, 2015 12:35:54 AM
Subject: Indexed epoch time in Solr
Hi All,
Is there a way to convert unix time field that is already indexed to
ISO-8601 format in query response? If this is not possible on the query
level, what is the best way to copy this field to a new Solr standard date
Hi All,
Is there a way to convert unix time field that is already indexed to
ISO-8601 format in query response? If this is not possible on the query
level, what is the best way to copy this field to a new Solr standard date
field.
Thanks,
--
*Ahmed Adel*