lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sachin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1073) StrField should allow locale sensitive sorting
Date Tue, 17 Mar 2009 09:04:50 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sachin updated SOLR-1073:
-------------------------

    Attachment: LocaleStrField.java

A new data type which extends StrField and provides locale specific sorting.

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

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


Mime
View raw message