Rob Audenaerde created LUCENE-5370:
--------------------------------------
Summary: Sorting Facets on CatergotyPath (Label)
Key: LUCENE-5370
URL: https://issues.apache.org/jira/browse/LUCENE-5370
Project: Lucene - Core
Issue Type: New Feature
Components: modules/facet
Affects Versions: 4.6
Reporter: Rob Audenaerde
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}}s 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.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]