Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37031 invoked from network); 2 Sep 2009 12:06:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 12:06:53 -0000 Received: (qmail 24801 invoked by uid 500); 2 Sep 2009 12:06:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 24715 invoked by uid 500); 2 Sep 2009 12:06:50 -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 24705 invoked by uid 99); 2 Sep 2009 12:06:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 12:06:50 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.82.104.176] (HELO web24703.mail.ird.yahoo.com) (212.82.104.176) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Sep 2009 12:06:40 +0000 Received: (qmail 41926 invoked by uid 60001); 2 Sep 2009 12:06:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1251893178; bh=5Yn2k7CzIlbSR5FB/ZZqfPGuisxzBU1ddbcWNvybcbo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OdG/Zs40AVi/wzJ4vShgVpXDIeIR636PpNUJmcNX3B3PvR+3D313PplPZe8sWKwUnICtLtToSgR9qF/KY27iOOpOOOub+hLC0v0liV4nvzxxmiHH43du9j/fsK3jPF2u11WGADumDVnxjtOX/jPsXNh8HNtAf5eNXUF4hIE09vE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VzRnlFTMkTEpoje5XWKaSQ7q45g+QZrbJo/KyxMGelqZ5d/XbNtby6fUU0uiVnzdNmaRaEnjjCUcgvkPCGr8jhAXo12W9L3juiQoUgLmB9SdfHuuuU51s02oatuAnl7VRxOcYyQ2a/9XAe1i4iuy56NIgyPTq8gxgP3iNRTv41A=; Message-ID: <907723.41487.qm@web24703.mail.ird.yahoo.com> X-YMail-OSG: I5bSgO4VM1kvuapPdACZkqwTqtLl84VItgSTF6gXvq4YIsdTS.wDIGu.BYSIxUBpk.cOYwSXuo.fMJ6DERKlZ6WorQc.FCueuwEz4kuI_ZHKo3K1.YIPtTBMhdLDWoCj7UVzLSVxuatOVqM9ety4uQut47Jr7XtkafgV1a7w5OnMA5xCscHUto_L0ezgexpV9euGo1ue6o09N9B3yfsGBIqMZhVBRmWvLM8lUbxdThy2UCD1AY.BgJld.RrjBAfLUsDuo4Z0iO2wL8GGfBKHdeh2zl5ZG3_g0Ea3wQFRZychbmK3qd4Z7vaLP.aFcocnUnLxw7sYyQ-- Received: from [193.36.230.96] by web24703.mail.ird.yahoo.com via HTTP; Wed, 02 Sep 2009 12:06:18 GMT X-Mailer: YahooMailRC/1358.27 YahooMailWebService/0.7.338.2 References: <003101ca2bb9$419a0f00$710bc30a@sv.us.sonicwall.com> <786fde50909020403n3f2d72d8gc35a0d7bc6d21c62@mail.gmail.com> <004101ca2bc1$eab54070$710bc30a@sv.us.sonicwall.com> Date: Wed, 2 Sep 2009 12:06:18 +0000 (GMT) From: mark harwood Subject: Re: First result in the group To: java-user@lucene.apache.org In-Reply-To: <004101ca2bc1$eab54070$710bc30a@sv.us.sonicwall.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org See "DuplicateFilter" in contrib.=0A=0Ahttp://markmail.org/message/lsvnpu7m= whht3a4p=0A=0ACheers=0AMark=0A=0A=0A=0A----- Original Message ----=0AFrom: = Ganesh =0ATo: java-user@lucene.apache.org=0ASent: We= dnesday, 2 September, 2009 12:38:35=0ASubject: Re: First result in the grou= p=0A=0AI have a field called category and all documents will have belong to= some category( say some belong to X and some Y etc). The field values may = change dynamically. I want the search results to be filterted to retrieve o= ne document per category. =0A=0AThis is similar to 'group by' feature in da= tabase.=0A=0ARegards=0AGanesh=0A=0A=0A----- Original Message ----- =0AFrom:= "Shai Erera" =0ATo: =0ASent= : Wednesday, September 02, 2009 4:33 PM=0ASubject: Re: First result in the = group=0A=0A=0A> What do you mean by "first result in the group"? What is a = group?=0A> =0A> On Wed, Sep 2, 2009 at 1:36 PM, Ganesh wrote:=0A> =0A>> Hello all,=0A>>=0A>> I want to retrieve the first resu= lt in the group. How to acheive this?=0A>> Currently i am parsing all the r= esults, using a hash and avoiding duplicate=0A>> entries.=0A>>=0A>> Is ther= e any better way?=0A>>=0A>> Regards=0A>> Ganesh=0A>> Send instant messages = to your online friends http://in.messenger.yahoo.com=0A>>=0A>> ------------= ---------------------------------------------------------=0A>> To unsubscri= be, e-mail: java-user-unsubscribe@lucene.apache.org=0A>> For additional com= mands, e-mail: java-user-help@lucene.apache.org=0A>>=0A>>=0A>=0ASend instan= t messages to your online friends http://in.messenger.yahoo.com=0A=0A------= ---------------------------------------------------------------=0ATo unsubs= cribe, e-mail: java-user-unsubscribe@lucene.apache.org=0AFor additional com= mands, e-mail: java-user-help@lucene.apache.org=0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org