On 21 Nov 2011, at 23:17, Chris Hostetter wrote:

> 
> : The way that I've solved this in the past is to make a field
> : specifically for sorting and then truncate the string to a small number
> : of characters and sort on that. You have to accept that in some cases
> 
> Something to consider is the ICUCollationKeyFilterFactory.  As noted on 
> the wiki...
> 
>       This filter works like ?CollationKeyFilterFactory, except it uses ICU 
>       for collation. This makes smaller and faster sort keys, ...
> 
> https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ICUCollationKeyFilterFactory
> 
> 
> -Hoss

Thanks for your help. So it's seeming like accurate string sorting over a large 
result set is always going to be problematic. My preferred solution is to not 
expose sorting functionality until the number of results is sufficiently small 
(eg less than 1000). I'll feed this back to the powers that be.

Regards,
Andrew Ingram

Reply via email to