You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Greg Miller (Jira)" <ji...@apache.org> on 2022/04/29 15:33:00 UTC

[jira] [Created] (LUCENE-10547) Implement "flattened" Facets#getTopChildren

Greg Miller created LUCENE-10547:
------------------------------------

             Summary: Implement "flattened" Facets#getTopChildren
                 Key: LUCENE-10547
                 URL: https://issues.apache.org/jira/browse/LUCENE-10547
             Project: Lucene - Core
          Issue Type: New Feature
          Components: modules/facet
            Reporter: Greg Miller


The currently implementation of {{Facets#getTopChildren}} only considers the immediate children of the user-provided path. In many cases, this is probably what the user is looking for, but it would be useful to also have an implementation that considers any descendant of the path, regardless of "level." This would allow the user to build a deeper set of facet path options in "one shot," instead of having to iteratively call {{getTopChildren}}.

Of course the shallower paths, and specifically the immediate children of the provided path, will always outweigh "deeper" paths due to counts/weights accumulating along the ancestry paths, but by providing a topN value larger than the number of immediate children, the user could build up a more complete view of path options in a taxonomy with a lot of depth.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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