Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16290

Combine Nested Facet & excludeTags and BlockChildren not working for children facets (multi select faceting)

    XMLWordPrintableJSON

Details

    Description

      Hello,

       

      I'm trying to combine Nested facet, excludeTags (for multiselect 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 but i can't exclude tags for children of course.

       

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Keko89 Kerim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: