Hi, How many distinct producttype do you have?
May be q=C^5000 OR B^4000 OR A^3000 OR D&df=producttype could work. If you can came up with a function that takes maximum value when producttype=C … etc you can sort by function queries too. http://wiki.apache.org/solr/FunctionQuery Ahmet On Wednesday, April 2, 2014 1:52 PM, santosh sidnal <sidnal.sant...@gmail.com> wrote: Re-sending my e-mail. any pointers/ links for the issue will help me lot. Thanks in advance. On Tue, Apr 1, 2014 at 4:25 PM, santosh sidnal <sidnal.sant...@gmail.com>wrote: > Hi All, > > We have a specific requirement of sorting the products as per a specific > attribute value sequence. Any pointer or source of info would help us. > > Example of the scenario; > > Let's say for search result i want to sort results based on a attribute > producttype. Where producttype has following values, A, B, C, D. > > so while in solr query i can give either producttype asc, producttype desc. > > But I want get result in a specific way by saying first give me All > results of values 'C' then B, A, D. > > > -- > Regards, > Santosh Sidnal > > -- Regards, Santosh Sidnal