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

Create ngroups for pivot faceting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.5, 6.0
    • None
    • None

    Description

      To save network traffic it would be great to now how many entries a facet list contains without loading the complete facet list. This issue is created because of an out of memory in loading the pivot facet with facet.limit set to -1.

      The facet.pivot result would then look like

      q=facet.pivot=cat,id&facet.pivot.ngroup=true

      <arr name="cat,id">
       <lst>
         <str name="field">cat/str>
         <str name="value">a</str>
         <int name="count">20</int>
         <arr name="pivot">
         <lst>
           <str name="field">id</str>
           <int name="value">69</int>
           <int name="count">10</int>
         </lst>
         <lst>
           <str name="field">id</str>
           <int name="value">71</int>
           <int name="count">10</int>
         </lst>
         <int name="ngroup">2</int> <!-- The new ngroup parm --> 
       </lst>
      </arr>
      

      If you add another new param for example facet.pivot.visible the
      result could create less traffic
      especially if there are a lot of ids and the param facet.limit=-1 is set

      q=facet.pivot=cat,id&facet.ngroup=true&f.id.facet.pivot.visible=false

      <arr name="cat,id">
       <lst>
         <str name="field">cat/str>
         <str name="value">a</str>
         <int name="count">20</int>
         <!-- No pivot list of id -->
         <int name="ngroup">2</int> 
       </lst>
      </arr>
      

      Attachments

        1. SOLR-5079.patch
          18 kB
          Sandro Mario Zbinden

        Activity

          People

            Unassigned Unassigned
            sandrozbinden Sandro Mario Zbinden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified