[ https://issues.apache.org/jira/browse/SOLR-12711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649537#comment-16649537 ]
Yonik Seeley commented on SOLR-12711: ------------------------------------- Could think of it like a block limit I guess. One way to specify would be a sort and a limit (i.e. you could select the 3 latest child documents). This could also be extended beyond blocks to buckets/domains. > Count dominating child field values > ----------------------------------- > > Key: SOLR-12711 > URL: https://issues.apache.org/jira/browse/SOLR-12711 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) > Components: Facet Module > Reporter: Mikhail Khludnev > Priority: Major > > h2. Context > {{uniqueBlock(_root_)}} which was introduced in SOLR-8998 allows to count > child field facet grouping hits by parents, ie hitting every parent only once. > h2. Problem > How to count only dominating child field value. ie if a product has 5 Red > skus and 2 Blue, it contributes {{Red(1)}}, {{Blue(0)}} > h2. Suggestion > Introduce {{dominatingBlock(_root_)}} which aggregate hits per parent, > chooses the dominating one and incs only it. > h2. Further Work > Judge dominating value not by number of child hits, but by the given function > value. Like pick the most popular, best selling, random child field value as > dominating. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org