You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sandro Mario Zbinden (JIRA)" <ji...@apache.org> on 2013/07/26 16:55:48 UTC

[jira] [Created] (SOLR-5079) Create ngroups for pivot faceting

Sandro Mario Zbinden created SOLR-5079:
------------------------------------------

             Summary: Create ngroups for pivot faceting
                 Key: SOLR-5079
                 URL: https://issues.apache.org/jira/browse/SOLR-5079
             Project: Solr
          Issue Type: Improvement
    Affects Versions: 5.0, 4.5
            Reporter: Sandro Mario Zbinden


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.

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>
   <int name="ngroup">2</int> <-- The new ngroup parm
 </lst>
</arr>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org