Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 41895 invoked from network); 13 Feb 2004 11:20:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 11:20:36 -0000 Received: (qmail 1430 invoked by uid 500); 13 Feb 2004 11:20:03 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 1394 invoked by uid 500); 13 Feb 2004 11:20:03 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 1373 invoked from network); 13 Feb 2004 11:20:02 -0000 Received: from unknown (HELO smtp2.clb.oleane.net) (213.56.31.18) by daedalus.apache.org with SMTP; 13 Feb 2004 11:20:02 -0000 Received: from teck ([217.167.130.37]) (authenticated) by smtp2.clb.oleane.net with ESMTP id i1DBKFZ6025517 for ; Fri, 13 Feb 2004 12:20:16 +0100 Message-ID: <001c01c3f223$1db93500$690010ac@teck> From: "Julien Nioche" To: "Lucene Users List" References: <200402131134.54675.lucene@nitwit.de> Subject: Re: Limiting hit count Date: Fri, 13 Feb 2004 12:18:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If you mean limiting the number of documents retrieved, for instance you're interested in the first 10 results, Lucene already does it for you. The Hit object actually contains only the n best documents (don't remember the exact value). If you want to limit the set of Documents you're querying, you should consider using Filter objects and send it to the searcher along with your Query. ----- Original Message ----- From: To: Sent: Friday, February 13, 2004 11:34 AM Subject: Limiting hit count > Hi! > > Can I limit the hits of a search (assuming that it is faster, of course :)? > > Timo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org