On Fri, Aug 12, 2011 at 1:04 PM, Yonik Seeley <yo...@lucidimagination.com> wrote: > On Fri, Aug 12, 2011 at 9:53 AM, Bernd Fehling > <bernd.fehl...@uni-bielefeld.de> wrote: >> It turned out that there is a sorting issue with solr 3.3. >> As fas as I could trace it down currently: >> >> 4 docs in the index and a search for *:* >> >> sorting on field dccreator_sort in descending order >> >> http://localhost:8983/solr/select?fsv=true&sort=dccreator_sort%20desc&indent=on&version=2.2&q=*%3A*&start=0&rows=10&fl=dccreator_sort >> >> result is: >> ---------- >> <lst name="sort_values"> >> <arr name="dccreator_sort"> >> <str>convertitovistitutonazionaled</str> >> <str>莊國鴻chuangkuohung</str> >> <str>zzzzzyyyyyywwwwwwwxxxxxxx</str> >> <str>abdelhadiyasserabdelfattah</str> >> </arr> >> </lst> > > > Hmmm, are the docs sorted incorrectly too, or is it the sort_values > that are incorrect? > All variants of string sorting should be well tested... see > TestSort.testSort()
OK, something is very wrong with that test - I purposely introduced an error into MissingLastOrdComparator and the test isn't failing. I'll dig. -Yonik http://www.lucidimagination.com