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 will
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
==
{
"resp
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
Verbose debug output
{
"responseHeader": {
"status": 0,
"QTime": 109
},
"initArgs": [
"defaults",
[
"config",
"data-config.xml"
]
],
"command": "full-import",
"mode": "debug",
"documents": [
{
"category": [
"Shirt"
],
"id":
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?
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,
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 am having some relational data in
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