Hi,

I am new SOLR user, I am trying to use SOLR in a application where we have
1 core with 1 config file having multiple queries. We have root entities
and many sub entities as well. Currently I am getting a response of
something like this

"response":{"numFound":1,"start":0,"docs":[
{
"unique_key":"4493234234",
"_version_":1560479076226957312,
"_childDocuments_":[
{
"a" : "value_a_1",
"b" : "value_b_1",
},
{
"a" : "value_a_2",
"b" : "value_b_2",
}]
}]}

where as what I am looking to get response is of this kind

"_childDocuments_":[
{"table_temp_response" :[
{
"a" : "value_a_1",
"b" : "value_b_1",
},
{
"a" : "value_a_2",
"b" : "value_b_2",
}]
}]

or this will also do
(we can do this using [subqueries] transformer I am not able to get child
data with this approach)

"response":{"numFound":1,"start":0,"docs":[
{
"_version_":1560657028091740160,
"childA":{"numFound":0,"start":0,"docs":[]
},
"childB":{"numFound":0,"start":0,"docs":[]
}}]

Can someone guide me how I can achieve this?

Reply via email to