Well, I can understand the code easily, but it could have been very difficult to find out without you since it is not explained in facet user guide and I couldn't imagine TaxonomyReader was the key to this process.
It would have been a lot better if there had been a higher level API for retrieving or traversing child categories. What do you like to do regarding this? On Sun, Mar 31, 2013 at 1:42 PM, Shai Erera <ser...@gmail.com> wrote: > Hi > > You can do so quite easily, using TaxonomyReader, following code such as: > > ParallelTaxonomyArrays arrays = taxoReader.getParallelTaxonomyArrays(); > int[] children = arrays.children(); > int[] siblings = arrays.siblings(); > > int ordinal = taxoReader.getOrdinal(category); // ordinal of requested > category > int child = children[ordinal]; // child of requested category > int sibling = siblings[child]; // siblings[] lets you traverse the children > of a category > while (sibling != TaxonomyReader.INVALID_ORDINAL) { > System.out.println(taxoReader.getPath(sibling)); > sibling = siblings[sibling]; // get next sibling > } > > Shai > > > On Sun, Mar 31, 2013 at 12:24 AM, crocket <crockabisc...@gmail.com> wrote: > > > I could use CountFacetRequest, but I don't need counting. > > > > I just want to get the list of child categories. > > > > How can I do it? > > >