lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana Jelda" <ramana.je...@ciao-group.com>
Subject How can I use SortComparator in my case?
Date Fri, 02 Mar 2007 10:45:02 GMT
Hi,
I have a requirement to sort search results in a round robin.
Ex:sorting results by field "customer" 
suppose following customers are found (number of results in brackets) and
results are sorted by customer.
 
Amazon(10)
Dell(2)
EBay(4)
Yahoo(20)
 
but I want to sort them in the following way,
Amazon(1)
Dell(1)
EBay(1)
Yahoo(1)
 
Amazon(1)
Dell(1)
EBay(1)
Yahoo(1)
 
Amazon(1)
EBay(1)
Yahoo(1)
  
Amazon(1)
EBay(1)
Yahoo(1)
 
etc.. etc..
 
 
You think I can use somehow SortComparator here? 
any suggestions?
 
Thx,
Jelda
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message