lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Getting error while excuting full import
Date Tue, 18 Apr 2017 13:21:24 GMT
Hello,

Shouldn't it just be where="PROPERTY_ID=PROPERTY_ID'"  since fields are
named the same in both tables.

On Tue, Apr 18, 2017 at 4:02 PM, ankur.168 <ankur.15500@gmail.com> wrote:

> Hi Mikhail,
>
> I tried with a simplest zipper entity. Here are the config details-
>
> <document name="sampleProperties">
>         <entity name="propertiesList" processor="SqlEntityProcessor"
> query="SELECT
> PROPERTY_ID FROM property order by PROPERTY_ID">
>
>                 <field column="PROPERTY_ID" name="propertyId" />
>
>                 <entity name="description" processor="SqlEntityProcessor"
> where="PROPERTY_ID=PROPERTY_ID'" query="SELECT * FROM
> property_text ORDER BY PROPERTY_ID"
>                 join="zipper">
>                                 <field column="TEXT" name="freeText" />
>                         </entity>
>         </entity>
> </document>
>
> Here child entity have multiple records for a given property id. Hence I
> believe full import is failing. I have added new logs below. Is there a way
> Zipper supports multiple records merge?
>
> aused by: java.lang.IllegalArgumentException: expect strictly increasing
> primary keys for Relation PROPERTY_ID='${propertiesList.PROPERTY_ID}'
> got: ,
>         at org.apache.solr.handler.dataimport.Zipper.onNewParent(
> Zipper.java:108)
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/Getting-error-while-excuting-full-import-tp4329153p4330488.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message