lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@gmail.com>
Subject Re: DIH; Hardcode field value/replacement based on source column
Date Wed, 01 Apr 2009 04:14:30 GMT
use TemplateTransformer
<field column="content_type_s" template="Video" />



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

Mime
View raw message