lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: sort by an attribute values sequence
Date Wed, 02 Apr 2014 15:19:58 GMT
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.santosh@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.santosh@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


Mime
View raw message