Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4897

Add a sugar API for traversing categories.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.2
    • 4.3, 6.0
    • modules/facet
    • New, Patch Available

    Description

      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.

      Attachments

        1. LUCENE-4897.patch
          9 kB
          Shai Erera
        2. LUCENE-4897.patch
          8 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            crocket crocket
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: