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

2009-04-08 Thread Fergus McMenemie
>: Indeed. I wrote the following test: >: >: Pattern p = Pattern.compile("(.*)"); >: Matcher m = p.matcher("xyz"); >: Assert.assertEquals("", "Video", m.replaceAll("Video")); >: >: The test fails. It gives "VideoVideo" as the actual result. I guess there is >: something about Matcher.replaceAll t

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

2009-04-07 Thread Chris Hostetter
: Indeed. I wrote the following test: : : Pattern p = Pattern.compile("(.*)"); : Matcher m = p.matcher("xyz"); : Assert.assertEquals("", "Video", m.replaceAll("Video")); : : The test fails. It gives "VideoVideo" as the actual result. I guess there is : something about Matcher.replaceAll that I d

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

2009-04-01 Thread Wesley Small
Thanks for the feedback. The templateTransformer is pretty straightforward solution. Perfect. Wesley. > > On 4/1/09 12:14 AM, "Noble Paul നോബിള്‍ नोब्ळ्" wrote: > >> use TemplateTransformer >> >> >> >> >> On Tue, Mar 31, 2009 at 9:20 PM, Wesley Small >> wrote: >>> I am trying to find a

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

2009-03-31 Thread Noble Paul നോബിള്‍ नोब्ळ्
iterestingly seems to work On Wed, Apr 1, 2009 at 12:13 AM, Fergus McMenemie wrote: > Hmmm, I am sure I have seen this as well! > >   sourceColName="fileAbsolutePath"/> > > I get the #${x.imgvurl} added twice. > > Fergus. > >>On 3/31/09 11:50 AM, "Wesley Small" wrote: >> >>> I am trying to f

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

2009-03-31 Thread Noble Paul നോബിള്‍ नोब्ळ्
use TemplateTransformer On Tue, Mar 31, 2009 at 9:20 PM, Wesley Small 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. > > replac

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

2009-03-31 Thread Shalin Shekhar Mangar
On Wed, Apr 1, 2009 at 12:13 AM, Fergus McMenemie wrote: > Hmmm, I am sure I have seen this as well! > > sourceColName="fileAbsolutePath"/> > > I get the #${x.imgvurl} added twice. > Indeed. I wrote the following test: Pattern p = Pattern.compile("(.*)"); Matcher m = p.matcher("xyz"); Assert.

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

2009-03-31 Thread Fergus McMenemie
Hmmm, I am sure I have seen this as well! I get the #${x.imgvurl} added twice. Fergus. >On 3/31/09 11:50 AM, "Wesley Small" 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 >

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

2009-03-31 Thread Shalin Shekhar Mangar
On Tue, Mar 31, 2009 at 9:20 PM, Wesley Small 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. > > replaceWith="Video" /> > > Howev

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

2009-03-31 Thread Vernon Chapman
Wesley, I'm not sure but if what you want is to have Video in the field I would do something in the sql query. I use postgres and I needed all my calendar event items to have "event" in the field named content. So I used the following as my sql query: select *,'event' as content from events Tha