[
https://issues.apache.org/jira/browse/SOLR-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar updated SOLR-1073:
----------------------------------------
Fix Version/s: 1.5
> StrField should allow locale sensitive sorting
> ----------------------------------------------
>
> Key: SOLR-1073
> URL: https://issues.apache.org/jira/browse/SOLR-1073
> Project: Solr
> Issue Type: Improvement
> Environment: All
> Reporter: Sachin
> Fix For: 1.5
>
> Attachments: LocaleStrField.java
>
>
> Currently, StrField does not take a parameter which it can pass to ctor of
> SortField making the StrField's sorting rely on the locale of the JVM.
> Ideally, StrField should allow setting the locale in the schema.xml and use
> it to create a new instance of the SortField in getSortField() method,
> something like:
> snip:
> public SortField getSortField(SchemaField field,boolean reverse)
> {
> ...
> Locale locale = new Locale(lang,country);
> return new SortField(field.getName(), locale, reverse);
> }
> More details about this issue here:
> http://www.nabble.com/CJKAnalyzer-and-Chinese-Text-sort-td22374195.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.