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-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to