[
https://issues.apache.org/jira/browse/SOLR-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703893#action_12703893
]
Walter Underwood commented on SOLR-1073:
----------------------------------------
Using the locale of the JVM is very, very bad for a multilingual server. Solr
should always use the same, simple locale. It is OK to set a Locale in
configuration for single-language installations, but using the JVM locale is a
recipe for disaster. You move Solr to a different server and everything breaks.
Very, very bad.
In a multi-lingual config, locales must be set per-request.
Ideally, requests should send an ISO language code as context for the query.
> 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
> 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.