Two things, one are your DB column uppercase as this would effect the out.

Second what does your db-data-config.xml look like

Regards,

Dave

On 30 Sep 2010, at 03:01, harrysmith wrote:

> 
> Looking for some clarification on DIH to make sure I am interpreting this
> correctly.
> 
> I have a wide DB table, 100 columns. I'd rather not have to add 100 values
> in schema.xml and data-config.xml. I was under the impression that if the
> column name matched a dynamic Field name, it would be added. I am not
> finding this is the case, but only works when the column name is explicitly
> listed as a static field.
> 
> Example: 100 column table, columns named 'COLUMN_1, COLUMN_2 ... COLUMN_100'
> 
> If I add something like:
> <field name="column_60"  type="string"  indexed="true"  stored="true"/>
> to schema.xml, and don't reference the column in data-config entity/field
> tag, it gets imported, as expected.
> 
> However, if I use:
> <dynamicField name="column_*"  type="string"  indexed="true" 
> stored="true"/>
> It does not get imported into Solr, I would expect it would.
> 
> 
> Is this the expected behavior?
> -- 
> View this message in context: 
> http://lucene.472066.n3.nabble.com/DataImportHandler-dynamic-fields-clarification-tp1606159p1606159.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to