You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Thomas Woodard <tw...@eline.com> on 2022/07/15 12:08:06 UTC
child transformer in field list
This is with solr 8.11. I can't get child documents returned in a result.
You can see from the query below that there are children, and filtering
them and returning parents works, but I can't get the children to also
return. What am I missing?
{
"responseHeader":{
"status":0,
"QTime":2,
"params":{
"q":"{!parent tag=top filters=$childFq which=scope_s:parent
v=$childQuery score=total}",
"fl":"id,item_id_store,item_descriptor_store,item_repository_store,[child
childFilter=$childFq limit=-1]",
"edisQ":"dil",
"start":"0",
"fq":"{!edismax tag=top qf=\"name_t^5 name_t_ngram\" pf=\"name_t^4
name_t_ngram^3\" mm=\"2<-1 5<-2 6<90%\" tie=\"0.1\" v=$edisQ}",
"sort":"score desc",
"rows":"3",
"childFq":["*:* -sku_type_s:27",
"*:* -sku_type_s:25",
"*:* -sku_type_s:(5 OR 6 OR 7 OR 11 OR 12 OR 16 OR 17 OR 18 OR 24
OR 99)"],
"childQuery":"scope_s:child"}},
"response":{"numFound":19,"start":0,"numFoundExact":true,"docs":[
{
"item_repository_store":"ProductCatalog",
"item_id_store":"459291",
"id":"459291",
"item_descriptor_store":"apparel-product"},
{
"item_repository_store":"ProductCatalog",
"item_id_store":"491243",
"id":"491243",
"item_descriptor_store":"toy-product"},
{
"item_repository_store":"ProductCatalog",
"item_id_store":"436331",
"id":"436331",
"item_descriptor_store":"toy-product"}]
}}