Re: DIH field options

2010-03-14 Thread Dennis Gearon
, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Thu, 3/11/10, blargy wrote: > From: blargy > Subject: DIH field options > To: solr-user@lucene.apache.org > Date: Thursday, March 11, 2010, 10:58 PM > > How can you simply ad

Re: DIH field options

2010-03-13 Thread Gregg Hoshovsky
You can use mysql , select *, “staticdata” as staticdata from table x. As long as your field name is staticdata, this should add it there. On 3/12/10 8:39 AM, "Tommy Chheng" wrote: Haven't tried this myself but try adding a default value and don't specify it during the import. http://wiki.ap

Re: DIH field options

2010-03-12 Thread blargy
match? Will this effect performance at all? > > Template Transformer is activated with template="". All Transformers work > like that. I don't think that it will noticeably effect performance. > > > > > -- View this message in context: http://old.nabble.com/DIH-field-options-tp27873996p27881023.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: DIH field options

2010-03-12 Thread Ahmet Arslan
> I feel like the default option is a little hacky plus I'll > probably be > sharing my schema.xml for multiple cores using dynamic > field types. > > I can't believe there isnt an easy way to specify this. So > my only options > is something like this? Also you can generate this static value fro

Re: DIH field options

2010-03-12 Thread blargy
ormer[1] with something like: > > > > Alternatively you can define default value of a field in schema.xml: > > default="NOW" multiValued="false"/> > > [1] http://wiki.apache.org/solr/DataImportHandler#TemplateTransformer > > > > > -- View this message in context: http://old.nabble.com/DIH-field-options-tp27873996p27880065.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: DIH field options

2010-03-12 Thread Tommy Chheng
Haven't tried this myself but try adding a default value and don't specify it during the import. http://wiki.apache.org/solr/SchemaXml On 3/12/10 7:56 AM, blargy wrote: Forgive me but I'm slightly retarded... I grew up underneath some power lines ;) I've read through that wiki but I still c

Re: DIH field options

2010-03-12 Thread Ahmet Arslan
> Forgive me but I'm slightly retarded... I grew up > underneath some power lines > ;) > > I've read through that wiki but I still can't find what I'm > looking for. I > just want to give one of the DIH entities/fields a static > value (ie it > doesnt come from a database column). How can I config

Re: DIH field options

2010-03-12 Thread blargy
Is there any documentation on all the options for the field tag in >> data-config.xml? >> >> Thanks for the help > > -- > Tommy Chheng > Programmer and UC Irvine Graduate Student > Twitter @tommychheng > http://tommy.chheng.com > > > -- View this message in context: http://old.nabble.com/DIH-field-options-tp27873996p27878836.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: DIH field options

2010-03-11 Thread Tommy Chheng
The wiki page has most of the info you need *http://wiki*.apache.org/*solr*/DataImportHandler To use multi-value fields, your schema.xml must define it with multiValued="true" On 3/11/10 10:58 PM, blargy wrote: How can you simply add a static value like? How does one add a static multi-val

DIH field options

2010-03-11 Thread blargy
How can you simply add a static value like?  How does one add a static multi-value field? Is there any documentation on all the options for the field tag in data-config.xml? Thanks for the help -- View this message in context: http://old.nabble.com/DIH-field-options-tp27873996p27873996.html