lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Interleaving the results
Date Sat, 29 May 2010 01:04:46 GMT
There is no interleaving tool. There is a random number tool. You will
have to achive this in your application.

On Fri, May 28, 2010 at 8:23 AM, NarasimhaRaju <rajuxgen@yahoo.com> wrote:
> Hi,
> how to achieve custom ordering of the documents when there is a general query?
>
> Usecase:
> Interleave documents from different customers one after the other.
>
> Example:
> Say i have 10 documents in the index belonging to 3 customers (customer_id field in the
index ) and using query *:*
> so all the documents in the results score the same.
> but i want the results to be interleaved
> one document from the each customer should appear before a document from the same customer
repeats ?
>
> is there a way to achieve this ?
>
>
> Thanks in advance
>
> R.
>
>
>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message