Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12711

Count dominating child field values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Facet Module
    • None

    Description

      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.

      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)

      Suggestion

      Introduce dominatingBlock(root) which aggregate hits per parent, chooses the dominating one and incs only it.

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkhl Mikhail Khludnev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: