I'm not very sure about what you are want to do but it seems that TemplateTransformer can help you.
http://wiki.apache.org/solr/DataImportHandler#head-071ff018f44ecbdb1cf55afc4c2a857f44ea1ea4 On Thu, Nov 13, 2008 at 10:09 PM, DODMax <[EMAIL PROTECTED]> wrote: > > Hello, > > I need somehow to add some custom properties to an entity so they will > appear with indexed datas. Something like this : > > <entity> > <field column="id" name="id" /> > <custom name="prop1" value="val1" /> > </entity> > > The point is that I don't have this property in the database so it can't be > imported. > Plus, I'm generating the data-source file from another database so I don't > know fields' name in advance. > > Triky things I may have tried with the regex transfomers for example don't > work because column name must be existing but not already used (or it will > be replaced). > <field column="required" name="prop1" regex="(.+)" replaceWith="val1"/> > > Any idea please ? > -- > View this message in context: > http://www.nabble.com/DataImportHandler%2C-custom-properties-tp20482190p20482190.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.