You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2018/08/28 22:17:00 UTC

[jira] [Created] (SOLR-12711) Count dominating child field values

Mikhail Khludnev created SOLR-12711:
---------------------------------------

             Summary: 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


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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org