You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by anuvenk <an...@hotmail.com> on 2008/05/27 21:53:54 UTC

solr sorting question

Question about sorting with solr. I want to group results in certain sort
order so i can split them & display in tabs easily.
I want to be able to have a custom sort order instead of sort=cat asc score
desc
In the above mentioned way, categories are grouped in ascending order. But i
want certain categories to come up first in the sort order. I don't want
them to be grouped in ascending order. Please shed some light anyone. How to
do it. Is it possible? 
-- 
View this message in context: http://www.nabble.com/solr-sorting-question-tp17498596p17498596.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solr sorting question

Posted by Alexander Ramos Jardim <al...@gmail.com>.
If you want to have some categories before another ones, but the other
categories sorted alphabeticaly, you could create another field on your
index like cat_priority and put numerical values, so you can sort by this
field and by secondarily by your category name.

2008/5/27 anuvenk <an...@hotmail.com>:

>
> Question about sorting with solr. I want to group results in certain sort
> order so i can split them & display in tabs easily.
> I want to be able to have a custom sort order instead of sort=cat asc score
> desc
> In the above mentioned way, categories are grouped in ascending order. But
> i
> want certain categories to come up first in the sort order. I don't want
> them to be grouped in ascending order. Please shed some light anyone. How
> to
> do it. Is it possible?
> --
> View this message in context:
> http://www.nabble.com/solr-sorting-question-tp17498596p17498596.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Alexander Ramos Jardim