I've been thinking about that in similar ways. I'll have look into it. Thanks Uwe
On Tue, May 27, 2008 at 9:06 PM, Steven A Rowe <[EMAIL PROTECTED]> wrote: > Hi Uwe, > > On 05/26/2008 at 8:43 AM, Uwe Klosa wrote: > > We're using Solr 1.3 in our application and we have an index > > that contains 3 different languages which are stored and > > indexed in fields like 'title_sv', 'title_en', 'title_no'. > > > > Our problem in this case is we want to sort the search > > results according to the different rules for each language. > > If we have 'sort=title_sv asc' we want that the Swedish > > rules are used. Is there a standard way to achieve this? > > Although the underlying Lucene Sort facility supports Locale-based field > sorting[1], Solr does not expose this functionality. > > I think Solr should support syntax like "sort=title_sv asc locale:sv", > minimally including the language, but possibly also the country component of > the locale, e.g. "sort=title_de asc locale:de_CH" for Swiss German. > > Steve > > [1] > http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/SortField.html#SortField(java.lang.String,%20java.util.Locale)<http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/SortField.html#SortField%28java.lang.String,%20java.util.Locale%29> >