Kerim created SOLR-16290:
----------------------------

             Summary: Combine Nested Facet & excludeTags and BlockChildren not 
working for children facets
                 Key: SOLR-16290
                 URL: https://issues.apache.org/jira/browse/SOLR-16290
             Project: Solr
          Issue Type: Wish
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.7
            Reporter: Kerim


Hello,

 

I'm trying to combine Nested facet, excludeTags (for multiFacet filter 
searching) and a blockChildren for the first level.

The problem is that the first level of the facet is always showing result, but 
the differents nested levels in the facet shown empty results.

However, If i remove the excludeTags for the children facet, the result is good 
and come back to normal.

 

This is the example :

 

*url with json.facet :*

http://url_solr:port/solr/index_name/query?&rows=0&json.facet=
{
   FirstLevel:{  
      domain:\{blockChildren:"DocType:parent",excludeTags:"DName1"},         
      type:terms,
      field:dataChildren1.name1,
        limit:-1
      facet:{
        SecondLevel:{          
            type:terms,
            field:dataChildren1.name2,
                limit:-1, domain:{excludeTags:"DName2"
}
            facet:{
                ThirdLevel:{          
                type:terms,
                field:dataChildren1.name3,
                    limit:-1, domain:{excludeTags:"DName3"
 }
               }
            }
           }    
            
      }
    },
    FirstLevel2:{
    domain:\{blockChildren:"DocType:parent"},         
      type:terms,
    field:dataChildren2.name1,
    limit:-1,
    facet:{
        SecondLevel2:{          
            type:terms,
            field:dataChildren2.name2,
                limit:-1
            facet:{
                ThirdLevel2:{          
                type:terms,
                field:dataChildren2.name3,
                    limit:-1
               }
            }
           }    
            
      }
   }
}

 

*Example Filter (body json) :*

 
{"filter":["(searchTextPrio1:\"text one\" OR  searchTextPrio1:\"text 
2\")","\{!parent which=\"DocType:parent\"}  ( 
\{!tag=DName2}dataChildren1.name2:\"a text\" AND 
\{!tag=DGufid}dataChildren1.name3:number)  OR  ( 
\{!tag=DName2}dataChildren1.name2:\"a text\" AND 
\{!tag=DGufid}dataChildren1.name3:number)  OR  ( 
\{!tag=DName2}dataChildren1.name2:\"a text\" AND 
\{!tag=DGufid}dataChildren1.name3:number) ","\{!parent 
which=\"DocType:parent\"} ( \{!tag=DName1} dataChildren1.name1:\"a 
text\")"],"query":"DocType:parent"}
 
Could you help me to find the problem ?
Thank you for your future help.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to