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 Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com> on 2009/04/01 06:14:30 UTC

Re: DIH; Hardcode field value/replacement based on source column

use TemplateTransformer
<field column="content_type_s" template="Video" />



On Tue, Mar 31, 2009 at 9:20 PM, Wesley Small <We...@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??
>
> Thanks,
> Wesley.
>
>
>



-- 
--Noble Paul