You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Yuting Gan (Jira)" <ji...@apache.org> on 2022/06/30 06:47:00 UTC

[jira] [Created] (LUCENE-10632) Change getAllChildren to return all children regardless of the count

Yuting Gan created LUCENE-10632:
-----------------------------------

             Summary: Change getAllChildren to return all children regardless of the count
                 Key: LUCENE-10632
                 URL: https://issues.apache.org/jira/browse/LUCENE-10632
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Yuting Gan


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|https://github.com/apache/lucene/pull/974], 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org