Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65840 invoked from network); 21 Feb 2006 20:28:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 20:28:23 -0000 Received: (qmail 76643 invoked by uid 500); 21 Feb 2006 20:28:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 76620 invoked by uid 500); 21 Feb 2006 20:28:16 -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 76608 invoked by uid 99); 21 Feb 2006 20:28:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 12:28:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.238.9.116] (HELO exchange.allegromedical.com) (66.238.9.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 12:28:16 -0800 Received: from mkhumri.allegro.med [10.50.1.40] by exchange.allegromedical.com with XWall v3.35 ; Tue, 21 Feb 2006 13:27:55 -0700 Message-ID: <43FB77C9.3070007@allegromedical.com> Date: Tue, 21 Feb 2006 13:27:53 -0700 From: Mufaddal Khumri User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: get results by relevance, limiting results and then sort the results by some criterion References: <43F5EE18.6050900@curtin.com> <43F6249B.8070505@allegromedical.com> <43F62D2B.2060308@allegromedical.com> <43F9E8BD.9010002@allegromedical.com> <1140452460.8229.43.camel@murmansk> <43F9F9B3.4050806@allegromedical.com> <43F9FF66.4050204@syr.edu> <43FA0433.7040908@allegromedical.com> <43FA0903.6040506@allegromedical.com> <43FB40D2.3080103@allegromedical.com> <43FB64A6.8060703@gmail.com> In-Reply-To: <43FB64A6.8060703@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Thats exactly what I am doing currently. Was just wondering if there is a lucene way to do what I am doing using QueryFilter etc. -Thanks. Dan Armbrust wrote: > Mufaddal Khumri wrote: > >> When I do a search for example on "batteries" i get 1200+ results. I >> would like to show the user lets say 300. I can do that by only >> extracting the first 300 hits (sorted by decreasing relevance by >> default) and displaying those to the user. >> >> > > If you are only talking about ordering the number of items that you > are going to show to the user, that seems to imply that the number > will be small. Why don't you just re-sort the items that you are > going to display to the user somewhere in your code after you get the > documents back from lucene? It may not be quite as clean, but I doubt > that there will be any performance impact. > > Dan > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org