Re: Solr Child="true" flag in version 6.4

2017-04-18 Thread Alexandre Rafalovitch
I am not sure I can explain it better than the link I gave. Basically you select parent records and then use fl=*,[child] to add children records into that. I mostly wanted to make sure you knew about the flatten-by-default search. Another way is to look for common _root_ field value. It

Re: Solr Child="true" flag in version 6.4

2017-04-18 Thread donjose
Hello Alex, Thanks for your reply. This is the first time i am doing with nested entities. Yes you are right am getting flat list combining parent & child. Could you please explain bit more detail, how to apply child transformer for the below mentioned response. Response == {

Re: Solr Child="true" flag in version 6.4

2017-04-18 Thread Alexandre Rafalovitch
You say you are trying to use child=true, but the definition you gave does not actually have one. Is it possible you tested with it once, but then did not keep it for later tests accidentally? Also, if that`s your first time working with nested entities, the query returns parents and children all

Re: Solr Child="true" flag in version 6.4

2017-04-18 Thread donjose
Verbose debug output { "responseHeader": { "status": 0, "QTime": 109 }, "initArgs": [ "defaults", [ "config", "data-config.xml" ] ], "command": "full-import", "mode": "debug", "documents": [ { "category": [ "Shirt" ],

Re: Solr Child="true" flag in version 6.4

2017-04-18 Thread Mikhail Khludnev
Hello, This is puzzling. Are you sure you have recent DIH jar at that core? Sometimes the old one can remain at lib directory. One odd thing in the config is that category values are not limited with something like WHERE categoryvalues.categoryid=${category.id} Can you share verbose debug output?

Re: Solr Child="true" flag in version 6.4

2017-04-17 Thread donjose
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,

Re: Solr Child="true" flag in version 6.4

2017-04-17 Thread Mikhail Khludnev
Hello, How do you index exactly? How do you query exactly? What do you get and how it differs from your expectation? On Mon, Apr 17, 2017 at 5:12 PM, donjose wrote: > Hello, > > I am facing an issue when i am trying to use child="true" in entity. > For example i

Solr Child="true" flag in version 6.4

2017-04-17 Thread donjose
Hello, I am facing an issue when i am trying to use child="true" in entity. For example i am having some relational data in my DB. Please find the sample JSOn format below { Category : "Shirt", CategoryId : 1 Categoryvalues : [ { id : 1, size : XL, color : red }, { id : 2, size