On Tue, Mar 31, 2009 at 9:20 PM, Wesley Small <wesley.sm...@mtvstaff.com>wrote:

> I am trying to find a clean way to *hardcode* a field/column to a specific
> value during the DIH process.  It does seems to be possible but I am
> getting
> an slightly invalid constant value in my index.
>
> <field column="content_type_s" sourceColName="title_t" regex="(.*)"
> replaceWith="Video" />
>
> However, the value in the index was set to "VideoVideo" for all documents.
>
> Any idea why this DIH instruction would see constant value appear twice??
>

Not sure. Let me run a test and get back.

However, this is a job for super....ahem, TemplateTransformer!

http://wiki.apache.org/solr/DataImportHandlerFaq
-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to