On Wed, Dec 29, 2010 at 2:59 AM, Mark <static.void....@gmail.com> wrote:
> Is there a way to create dynamic column names using the values returned from
> the query?
>
> For example:
>
> <entity name="foo"
>             dataSource="my_database"
>             query="select * from foo where item_id=${item.id}">
> <field column="title" name="${foo.somefield}_textsv"/>
> </entity>

Not sure if that syntax will work, but you can use a transformer
to add a dynamic column, Please see
http://wiki.apache.org/solr/DataImportHandler#Transformer

Regards,
Gora

Reply via email to