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?
>

Reply via email to