copyField?

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Thu, Sep 13, 2012 at 9:40 AM, meghana <meghana.rav...@amultek.com> wrote:
> Hi,
>
> I have one date field in my data source as of format below
>
> 'Apr 10 2012 10:30AM'
>
> Now i wanted to add this field 2 times in my solr index, one with exact
> value as of above and one with 'tdate' format of solr schema.
>
> I used XPathEntityProcessor for my dataimport xml , and i add this date
> field in my dataimport handler as mentioned below
>
>  <entity name="NewsXML" onError="continue" rootEntity="true"
> transformer="DateFormatTransformer" processor="XPathEntityProcessor"
> forEach="/content/article/" url="${FilePath.FileLocation}" dataSource="FD">
>           <field column="article_time_DT"
> xpath="/content/article/article_time" dateTimeFormat="MMM dd yyyy hh:mmaaa"
> />
>          <field column="article_time" xpath="/content/article/article_time"
> />
> </entity>
>
> but by doing this way , only last mentioned filed (in this case
> 'article_time') get inserted in solr index , but no data inserted for
> article_time_DT field.
>
> Can any body please suggest me , how can i achieve my requirement.
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to