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 Collation Key Analyzer #2338

Closed
wants to merge 3 commits into from
Closed

Adding Collation Key Analyzer #2338

wants to merge 3 commits into from

Conversation

jprante
Copy link
Contributor

@jprante jprante commented Oct 18, 2012

Hi,

this patch adds the Lucene CollationKeyAnalyzer for locale-sensitive sorting by using java.text.Collator. I know that ICUCollationKey is much preferable https://issues.apache.org/jira/browse/LUCENE-1719 but it could be useful for non-ICU environments, and where performance is not very important. See also my pull request for java.text.Collator based terms facet sorting. It would be nice being able to align hit sorting and terms facet sorting.

Test is included for demonstrating a collation-key based sort.

Cheers, Jörg

@clintongormley
Copy link

Closing in favour of #6917

@GeetNair
Copy link

GeetNair commented Feb 2, 2015

I am new to elasticsearch and I would like to know the steps required to use the ICU plugin as a library i.e. we call some API in that plugin which converts our field into required format for sorting.

the problem is that we are trying to use the doc_values = true option in mapping but this cannot be used for string fields having analyzer.So if we need to use ICU plugin then we cannot use doc_value option.

Also will you please provide me stepwise guid from how to install and what needs to be done

@jprante
Copy link
Contributor Author

jprante commented Feb 2, 2015

@GeetNair this pull request was about aggregations with (non-ICU) collation-based sort. Your question is about the ICU plugin. Please open an issue there.

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