Hi All, I found out that reason the strings are not getting sorted is because there is no way to pass the locale information to StrField, I ended up extending StrField to take an additional attribute in schema.xml and then had to override the getSortString method where in I create a new Locale based on the schema attribute and pass it to the StrField. I put this newly created jar file in the lib folder and everything seems to be working fine after that. Since, my java knowledge is almost zilch, I was wondering is this the right way to solve this problem or is there any other recommended approach for this?
Thanks! -- "Sachin" <sachin.ni...@netzero.net> wrote: For some reasons this never made to the mailing list, hence re-posting. ------------- Hi All, Is there any way to sort Chinese text in solr? We have currently setup schema.xml to use CJKAnalyzer/CJKTokenizer for analyzing/tokenizing the text and sort is done on a field which only uses KeywordTokenizerFactory and TrimFilterFactory. But the text doesn't seem to be sorted either on Pinyin or strokes (as far as I know these are two ways in which Chinese text can be sorted) and the return order of the result seems to be completely random if sort order on a text field is specified. Is there any way to make solr sorting locale/collation aware (I don't mind hard-wiring any Chinese related configuration in the schema.xml as this index will only store Chinese text)? We are using solr 1.2. Any pointers/helps would be greatly appreciated. Thanks! SN ____________________________________________________________ A cleaner home is just a click away. Click now for great housekeeping services! http://thirdpartyoffers.netzero.net/TGL2231/fc/BLSrjnxXe5fF8TKJQ3eKBLRloGh6Dx2t6oeYL2I5CURSlBtD3p8lnQMBveI/