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:

https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternRe
placeCharFilterFactory


If you have control over the input, then I always find it better to just
transform it prior to sending it into solr.

Jim

On 1/25/15, 11:35 PM, "Ahmed Adel" <ahmed.a...@badrit.com> wrote:

>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*
><http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2F>

Reply via email to