lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From donjose <donjose.eluvathin...@socgen.com>
Subject Re: Solr Child="true" flag in version 6.4
Date Tue, 18 Apr 2017 05:46:26 GMT
I am getting flat structure.
Expected Result : 
{ 
 Category : "Shirt", 
 CategoryId : 1 
 Categoryvalues : [ 
 { 
     id : 1, 
     size : XL, 
    color : red 
 }, 
 { 
     id : 2, 
     size : XL, 
    color : blue 
 } 
 
 ] 
}

Result i am getting: 
 Categoryvalues :  
 { 
     id : 1, 
     Category : "Shirt", 
     CategoryId : 1,
     size : XL, 
     color : red 
 }
, 
 {
     id : 2, 
     Category : "Shirt", 
     CategoryId : 1,
     size : XL, 
    color : blue 
 }



Data-config.xml
===================
<dataConfig>
    <dataSource driver="oracle.jdbc.OracleDriver" url="jdbcurl"
user="username" password="password" />
    <document name="Categories">
        <entity name="ASSETCATEGORY" query="SELECT id, categoryid, category
from category">
	    <field column="id" name="id" />
	    <field column="categoryid" name="categoryid" />
            <field column="category" name="category" />
	    <entity name="Values" query="SELECT id,size,color from categoryvalues">
		    <field column="id" name="id" />
        	    <field column="size" name="size" />
	            <field column="color" name="color" />
	    </entity>
	</entity>
     </document
</dataconfig>



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Child-true-flag-in-version-6-4-tp4330312p4330437.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message