I tried it as :
<entity name="torder" query="select
UID_PK,creationDate,email,confirmationCode from torder ">
                        <field column="creationDate" name="date" />
                <entity name="torderattribute" transformer="TemplateTransformer"
query="select UID_PK from  torderattribute where
orderUID='${torder.UID_PK}'">
                         <field column="UID_PK"
<h3>template="{torder.UID_PK},${torderattribute.UID_PK}
" />
                </entity>
   </entity>



But i suppose it is not correct because here i am not mapping UID_PK of
torderattribute to any of field in  schema.xml. can i add like this:
<field column="UID_PK" name= ID
template="{torder.UID_PK},${torderattribute.UID_PK}" />


where ID is a field in schema.xml and it is UniqueKey.

-----
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988484.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to