lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Lucey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5079) Create ngroups for pivot faceting
Date Sun, 18 May 2014 04:53:16 GMT

    [ https://issues.apache.org/jira/browse/SOLR-5079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000993#comment-14000993
] 

Brett Lucey commented on SOLR-5079:
-----------------------------------

I don't think this patch would work (as is) if the dataset is sharded.  Addressing the issue
in a sharded dataset could be somewhat challenging as well, since you would need some mechanism
to avoid double-counting a value that might be present on more than one shard.  Have you considered
this use case?


> Create ngroups for pivot faceting
> ---------------------------------
>
>                 Key: SOLR-5079
>                 URL: https://issues.apache.org/jira/browse/SOLR-5079
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.5, 5.0
>            Reporter: Sandro Mario Zbinden
>              Labels: facet, pivot
>         Attachments: SOLR-5079.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> 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*
> {code:xml}
> <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>
> {code}
> 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*
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message