Romi,

first, you're missing a $ Sign for the first Variable.

second, why not just <field column="ID" .. /> ? The <field>-Tag has no ID, in case you're using the TemplateTransformer.

Regards
Stefan

Am 26.05.2011 14:16, schrieb Romi:
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