Re: dataConfig DTD or schema

2013-05-31 Thread Chris Hostetter
: > TemplateTransformer : : But doesn't that override the value even if it is present? I thought : the request was for default value if one is not supplied. Though maybe : I was wrong. Bah! You are completley correct ... I didn't fully understand the question. Sorry for the noise. -Hoss

Re: dataConfig DTD or schema

2013-05-31 Thread Alexandre Rafalovitch
On Fri, May 31, 2013 at 1:43 PM, Chris Hostetter wrote: > TemplateTransformer But doesn't that override the value even if it is present? I thought the request was for default value if one is not supplied. Though maybe I was wrong. Regards, Alex. Personal blog: http://blog.outerthoughts.com/

Re: dataConfig DTD or schema

2013-05-31 Thread Chris Hostetter
: > On the other side: I have a problem. Because I want to give some entities : > a default value "A" and others default value "B" - which I could do inside : > a inside of in data-config.xml but not inside a in : > schema.xml. : In that case, you will need to write a custom DIH Transformer. No

Re: dataConfig DTD or schema

2013-05-31 Thread Chris Hostetter
: References: <1370004174910-4067305.p...@n3.nabble.com> : In-Reply-To: <1370004174910-4067305.p...@n3.nabble.com> : Subject: dataConfig DTD or schema https://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do no

Re: dataConfig DTD or schema

2013-05-31 Thread Shalin Shekhar Mangar
On Fri, May 31, 2013 at 8:35 PM, Hans-Peter Stricker wrote: > On the other side: I have a problem. Because I want to give some entities > a default value "A" and others default value "B" - which I could do inside > a inside of in data-config.xml but not inside a in > schema.xml. > > In that case,

Re: dataConfig DTD or schema

2013-05-31 Thread Alexandre Rafalovitch
hers default value "B" - which I could do inside a > inside of in data-config.xml but not inside a in > schema.xml. > > > -- > From: "Shalin Shekhar Mangar" > Sent: Friday, May 31, 2013 4:59 PM > To: > S

Re: dataConfig DTD or schema

2013-05-31 Thread Hans-Peter Stricker
uot;Shalin Shekhar Mangar" Sent: Friday, May 31, 2013 4:59 PM To: Subject: Re: dataConfig DTD or schema DataImportHandler does not support specifying default values for a field. However, the solr schema.xml lets you specify defaults. So, modify the corresponding field inside solr's sc

Re: dataConfig DTD or schema

2013-05-31 Thread Hans-Peter Stricker
You are great! Thanks a lot for taking the time. -- From: "Shalin Shekhar Mangar" Sent: Friday, May 31, 2013 4:59 PM To: Subject: Re: dataConfig DTD or schema DataImportHandler does not support specifying default values for a fiel

Re: dataConfig DTD or schema

2013-05-31 Thread Shalin Shekhar Mangar
DataImportHandler does not support specifying default values for a field. However, the solr schema.xml lets you specify defaults. So, modify the corresponding field inside solr's schema.xml. For example: On Fri, May 31, 2013 at 8:20 PM, Hans-Peter Stricker wrote: > I wonder how to pass default