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

Add a sugar API for traversing categories.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/facet
    • Labels:
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: