Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding collator-based sorting for terms facet entries #2337

Closed
wants to merge 2 commits into from
Closed

Adding collator-based sorting for terms facet entries #2337

wants to merge 2 commits into from

Conversation

jprante
Copy link
Contributor

@jprante jprante commented Oct 18, 2012

Hi,

here is a non-ICU feature extension for the standard ES terms facets, which may be useful in linguistic applications.

Right now it is not possible to sort names in facet entries according to locale settings. So I have added a subpackage org.elasticsearch.search.facet.terms.comparator with a set of comparator classes. One comparator is based on java.text.Collator. Some new parameters can be given to a facet query: "locale", "reverse", "rules", "strength", and "decomp".

Test case is included in TermsFacetCollationTests.java for german and french sorting, also a rule-based demo.

Cheers, Jörg

@clintongormley
Copy link
Contributor

Related to #2078

@jpountz
Copy link
Contributor

jpountz commented Jul 18, 2014

Closing in favor of #6917

@jpountz jpountz closed this Jul 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants