You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Daniel Lowe (Jira)" <ji...@apache.org> on 2020/06/04 02:39:00 UTC

[jira] [Comment Edited] (SOLR-14518) Add support for partitioned unique agg to JSON facets

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

Daniel Lowe edited comment on SOLR-14518 at 6/4/20, 2:38 AM:
-------------------------------------------------------------

I also had encountered a need for this functionality (issue linked). uniqueShard would to me be an intuitive name for this functionality.

In my actual use case my data happens to be in blocks, and I wanted the (exact) unique count of values in a child document field, where some of the child documents may have the same value for the field, but values of the field in one block never appear in any other block (and by extension also never appear in any other shard). Would uniqueBlock(field) help with that?


was (Author: dan2097):
I also had encountered a need for this functionality (issue linked). uniqueShard would to me be an intuitive name for this functionality.

In my actual use case my data happens to be in blocks, and I wanted the (exact) unique count of values in a child document field, where some of the child documents may have the same value for the field, but values of the field in one block never appear in any other block (and by extension also never appear in any other shard). Would uniqueBlock(field) help with that?

{{}}

> Add support for partitioned unique agg to JSON facets
> -----------------------------------------------------
>
>                 Key: SOLR-14518
>                 URL: https://issues.apache.org/jira/browse/SOLR-14518
>             Project: Solr
>          Issue Type: New Feature
>          Components: Facet Module
>            Reporter: Joel Bernstein
>            Priority: Major
>
> There are scenarios where documents are partitioned across shards based on the same field that the *unique* agg is applied to with JSON facets. In this scenario exact unique counts can be calculated by simply sending the bucket level unique counts to the aggregator where they can be summed. Suggested syntax is to add a boolean flag to the unique aggregation function: *unique*(partitioned_field, true).
> The *true* value turns on the "partitioned" unique logic. The default is false.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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