You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "solruser@9913" <gu...@yahoo.com> on 2011/08/05 07:31:42 UTC
Solr DIH import - Date Question
This is perhaps a 'truly newbie' question. I am processing some files via
DIH handler/XPATH Processor. Some of the date fields in the XML are in
'Java Long format' i.e. just a big long number. I am wondering how to map
them Solr Date field. I used the DIH DateFormatTransformer for some other
'date' fields that were written out in a regular date format.
However I am stumped on this - thought it would be simple but I was not able
to find a solution ....
Any help would be much appreciated
-g
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-DIH-import-Date-Question-tp3227720p3227720.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr DIH import - Date Question
Posted by Lance Norskog <go...@gmail.com>.
You might have to do this with an external script. The DIH lets you
process fields with javascript or Groovy.
Also, somewhere in the DIH you can give an XSL stylesheet instead of
just an XPath.
On Thu, Aug 4, 2011 at 10:31 PM, solruser@9913 <gu...@yahoo.com> wrote:
> This is perhaps a 'truly newbie' question. I am processing some files via
> DIH handler/XPATH Processor. Some of the date fields in the XML are in
> 'Java Long format' i.e. just a big long number. I am wondering how to map
> them Solr Date field. I used the DIH DateFormatTransformer for some other
> 'date' fields that were written out in a regular date format.
>
> However I am stumped on this - thought it would be simple but I was not able
> to find a solution ....
>
> Any help would be much appreciated
>
> -g
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-DIH-import-Date-Question-tp3227720p3227720.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Lance Norskog
goksron@gmail.com