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

Sorting Facets on CategoryPath (Label)

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6
    • Fix Version/s: None
    • Component/s: modules/facet
    • Labels:
    • Lucene Fields:
      New

      Description

      Facet support sorting through FacetRequest.SortOrder. This is used in the ResultSortUtils. For my application it would be very nice if the facets can also be sorted on their label.

      I think this could be accomplished by altering FacetRequest with an extra enum SortType, and two extra Heap in ResultSortUtils which instead of comparing the double value, compare the CategoryPath.

      What do you think of this idea? Or could the same behaviour be accomplished in a different way already?

      (btw: I tried building this patch on the trunk of lucene5.0; but I couldn't get the maven build to build correctly. I will try again lateron on the 4.6 branch.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robau Rob Audenaerde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: