maybe

<entity name="bothTables"
                        query="select concat('A.',id) id, id originalId,
nameA from tbl_tableA union all select concat('B.',id) id, id originalId,
nameA from tbl_tableB ">
                        <field name="id" column="id"/>
                        <field name="originalId" column="originalId"/> <!--
need a new field -->
                        <field name="nameA" column="nameA" />
                </entity>

So you can keep the original id, maybe add also an originalTable field if
you don't like parsing the id colum to discover the table from which the
data was read.


2013/10/29 Stefan Matheis <matheis.ste...@gmail.com>

> I've never looked for another way, what's the problem using a compound key?
>
>
> On Monday, October 28, 2013 at 1:38 PM, dtphat wrote:
>
> > Hi,
> > is there no another way to import all data for this case instead Only the
> > way using compound key?
> > Thanks.
> >
> >
> >
> > -----
> > Phat T. Dong
> > --
> > View this message in context:
> http://lucene.472066.n3.nabble.com/Re-Data-import-handler-with-multi-tables-tp4098048p4098056.html
> > Sent from the Solr - User mailing list archive at Nabble.com (
> http://Nabble.com).
> >
> >
>
>
>

Reply via email to