Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10632

Change getAllChildren to return all children regardless of the count

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • modules/facet
    • None
    • New

    Description

      Currently, the getAllChildren functionality is implemented in a way that is similar to getTopChildren, where they only return children with count that is greater than zero.

      However, he original getTopChildren in RangeFacetCounts returned all children whether-or-not the count was zero. This actually has good use cases and we should continue supporting the feature in getAllChildren, so that we will not lose it after properly supporting getTopChildren in RangeFacetCounts.

      As discussed with gsmiller in the LUCENE-10614 pr, allowing getAllChildren to behave differently from getTopChildren can actually be more helpful for users. If users want to get children with only positive count, we have getTopChildren supporting this behavior already. Therefore, the getAllChildren API should provide all children in all of the implementations, whether-or-not the count is zero.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yutinggan Yuting Gan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: