Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 28316 invoked from network); 5 Mar 2007 09:32:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 09:32:26 -0000 Received: (qmail 63382 invoked by uid 500); 5 Mar 2007 09:32:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 63181 invoked by uid 500); 5 Mar 2007 09:32:28 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 63169 invoked by uid 99); 5 Mar 2007 09:32:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 01:32:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ramana.jelda@ciao-group.com designates 194.112.113.90 as permitted sender) Received: from [194.112.113.90] (HELO pigeon.ciao.com) (194.112.113.90) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 01:32:18 -0800 Received: from Jelda (gateway.ciao.com [194.221.9.215]) by pigeon.ciao.com (8.13.3/8.13.3) with ESMTP id l259Vr5Z013657 for ; Mon, 5 Mar 2007 10:31:53 +0100 (CET) (envelope-from ramana.jelda@ciao-group.com) Message-Id: <200703050931.l259Vr5Z013657@pigeon.ciao.com> From: "Ramana Jelda" To: Subject: RE: How can I use SortComparator in my case? Date: Mon, 5 Mar 2007 10:31:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: Acdct9UH1Scv129FQSOI6USgH2QnkwARTH8wAIL8ntA= X-Scanned-By: MIMEDefang 2.57 on 194.112.113.90 X-Virus-Checked: Checked by ClamAV on apache.org This will then be a big hastle. The results are in 100s and sometimes in 1000s. Hum.. No other better way? Jelda > -----Original Message----- > From: Mordo, Aviran (EXP N-NANNATEK) [mailto:aviran.mordo@lmco.com] > Sent: Friday, March 02, 2007 8:02 PM > To: java-user@lucene.apache.org > Subject: RE: How can I use SortComparator in my case? > > You'll need to do it manually and not with Lucene. > > Just grab all the results from Lucene and process them yourself. > > Aviran > http://aviransplace.com > > -----Original Message----- > From: Ramana Jelda [mailto:ramana.jelda@ciao-group.com] > Sent: Friday, March 02, 2007 5:45 AM > To: java-user@lucene.apache.org > Subject: How can I use SortComparator in my case? > > 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org