lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>
Subject Re: Dinamic field name with Data import handler
Date Fri, 23 Oct 2009 05:02:07 GMT
not like this.  column and name cannot support templates. But you can
use a Transformer to add new fields . you may write a simple
javascript to do so.
http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer

On Thu, Oct 22, 2009 at 7:51 PM, Renata Mota
<renata.mota@accurate.com.br> wrote:
> Hi,
>
>
>
> I’m trying to give dynamic names for a field with data import handler, but i
> don’t get.
>
>
>
> Example:
>
>
>
> <entity name="users" query = "SELECT ID, NAME FROM USER">
>
> <field column="NAME" name="name_'${ users. id}'_s" />
>
> </entity>
>
>
>
> It’s possible to do something like this?
>
>
>
>
>
> Thanks,
>
>
>
>
>
> Renata Gonçalves Mota
>  <mailto:renata.mota@accurate.com.br> renata.mota@accurate.com.br
> Tel.: 55 11 3522-7723 R.3018
>
>
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Mime
View raw message