On Thu, Nov 13, 2008 at 3:52 AM, Chris Hostetter <[EMAIL PROTECTED]>wrote:
> > : You need to modify the schema which came with Solr to suit your data. > There > > If i'm understanding this thread correctly, DIH ran "successfully", docs > were created, some fields were stored and indexed (because they did exist > in the schema) but other fields the user was attempting to create didn't > exist... > > : > So there is data there, however I have not defined any 'Fields' in my > : > data-config and am hoping my column names are the 'fields', yet I'm not > : > seeing any of them being returned in the 'doc' node below > > ...presumably the example schema.xml was being used, where there is no > <dynamicField name="*" ... /> ... so shouldn't the unrecognized field > names have generated an error during indexing? > > Is here a bug in DIH that caused these unrecognized fields to be ignored, > or is it possible the errors were logged (by DUH2 maybe? ... it's been a > while since i looked at the update code) but DIH didn't notice them and > reported success anyway? If the data contains a field name which is not defined in the schema.xml, then DIH ignores it. This is a very common use-case where you may want to process intermediate data and add it to a completely new field. For example, if you have first-name and last-name coming in from DB and you want to combine them into a new field "name" with TemplateTransformer. -- Regards, Shalin Shekhar Mangar.