lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Snyder <gsny...@ufl.edu>
Subject Re: FACET_SORT_INDEX descending?
Date Wed, 14 Oct 2009 14:30:16 GMT
Thanks for the answer and the alternative idea.    --Gerald


Chris Hostetter wrote:
> : Reverse alphabetical ordering.   The option "index" provides alphabetical
> : ordering. 
>
> be careful: "index" doesn't mean "alphabetical" -- it means the natural 
> ordering of terms as they exist in the index. for non ascii characters 
> this is not neccessarily something that could be considered alphabetical 
> (or sensical in terms of the locale).
>
> The short answer is: no, there is no way to get "reverse" index order at 
> the moment.
>
> : I have a year_facet field, that I would like to display in reverse order (most
> : recent years first).  Perhaps there is some other way to accomplish this.
>
> the simplest way is to encode the year in some format thta will cause it 
> to naturally sort in the order you want - so instead of indexing "1976" 
> and "2007" you could index "8024:1976" and "7993:2007" and then only 
> display the part that comes after the ":"
>
>
>
> -Hoss
>
>
>   

Mime
View raw message