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


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);
 }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to