[ 
https://issues.apache.org/jira/browse/LUCENE-4897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622037#comment-13622037
 ] 

Shai Erera commented on LUCENE-4897:
------------------------------------

I wanted to avoid introducing another class (facet collections already use this 
primitive IntIterator), but maybe a ChildrenIterator with next() is simplest. 
I'll look into it.
                
> Add a sugar API for traversing categories.
> ------------------------------------------
>
>                 Key: LUCENE-4897
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4897
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>    Affects Versions: 4.2
>            Reporter: crocket
>            Priority: Trivial
>              Labels: newdev
>         Attachments: LUCENE-4897.patch
>
>
> Mike McCandless said in lucene-java-user mailing list.
> "Maybe we could add some simple sugar APIs?
> Eg something like Collection<CategoryPath> getChildren(int parentOrd)?
>  (Or maybe it returns Iterator<CategoryPath>?)"
> What about Collection<Integer> getChildren(int parentOrd)?
> Integer would be more versatile and can easily be converted to CategoryPath 
> with TaxonomyReader.getPath.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to