Well, One solution that I can see for this problem is having different indexes for each language.
2008/5/28 Uwe Klosa <[EMAIL PROTECTED]>: > Nice idea. I'll look into that, too. > > Thanks > Uwe > > On Tue, May 27, 2008 at 10:34 PM, Chris Hostetter < > [EMAIL PROTECTED]> > wrote: > > > > > : 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. > > > > I'm not sure how i feel about that syntax, but a fairly straight forward > > way to get Locale based sorting with Solr is to write a subclass of > > StrField that took in a "locale" init param and used it in the > > getSortField method. Then in yourschema each <filedType/> could declare > > what locale to use for sorting. > > > > that would work with Solr 1.2 without any modifications, but if someone > > wants to submit a patch we can make Solr "out of the box" by making > > similar changes to the FieldType base class that would be pretty cool. > > > > (one thing that might get tricky is making the new Locale option play > nice > > with the sortMissingFirst and sortMissingLast options ... might need some > > creative SortComparators) > > > > > > -Hoss > > > > > -- Alexander Ramos Jardim