If your script turns out too complex to maintain, and you are developing
in Java, anyway, you could extend EntityProcessor and handle the data in
a custom way. I've done that to transform a datamart like data structure
back into a row based one.

Basically you override the method that gets the data in a Map and
transform it into a different Map which contains the fields as
understood by your schema.

Chantal


On Thu, 2012-02-16 at 14:59 +0100, Mikhail Khludnev wrote:
> Hi Baranee,
> 
> Some time ago I played with
> http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer - it was a
> pretty good stuff.
> 
> Regards
> 
> 
> On Thu, Feb 16, 2012 at 3:53 PM, K, Baraneetharan 
> <baraneethara...@hp.com>wrote:
> 
> > To avoid that we don't want to mention the column names in the field tag ,
> > but want to write a query to map all the fields in the table with solr
> > fileds even if we don't know, how many columns are there in the table.  I
> > need a kind of loop which runs through all the query results and map that
> > with solr fileds.
> 
> 
> 
> 

Reply via email to