[ https://issues.apache.org/jira/browse/SOLR-14518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118993#comment-17118993 ]
Mikhail Khludnev edited comment on SOLR-14518 at 5/28/20, 7:38 PM: ------------------------------------------------------------------- bq. uniqueBlock seems to be taking advantage of the existence of the root field to calculate unique. Right I've forgotten about it. {{uniqueBlock}} requires monotonicity across blocks. Regarding benchmark {{uniqueBlock}} provides gain only with {{limit:-1}}, also recently we added a bitset option {{uniqueBlock(\{!v=type:product})}} it doesn't need to read docValues and is supposed to be faster. was (Author: mkhludnev): bq. uniqueBlock seems to be taking advantage of the existence of the root field to calculate unique. Right I've forgotten about it. {{uniqueBlock}} requires monotonicity across blocks. Regarding benchmark {{uniqueBlock}} provides gain only with {{limit:-1}}, also recently we added a bitset option {{uniqueBlock({!v=type:product})}} it don't need to read docValues and is supposed to be faster. > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org