Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 43187 invoked from network); 27 Apr 2004 13:00:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Apr 2004 13:00:27 -0000 Received: (qmail 21557 invoked by uid 500); 27 Apr 2004 13:00:17 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 21532 invoked by uid 500); 27 Apr 2004 13:00:17 -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 21517 invoked from network); 27 Apr 2004 13:00:16 -0000 Received: from unknown (HELO c007.snv.cp.net) (209.228.33.243) by daedalus.apache.org with SMTP; 27 Apr 2004 13:00:16 -0000 Received: (cpmta 9614 invoked from network); 27 Apr 2004 06:00:16 -0700 Received: from 213.132.40.2 (HELO naderit) by smtp.bayt.net (209.228.33.243) with SMTP; 27 Apr 2004 06:00:16 -0700 X-Sent: 27 Apr 2004 13:00:16 GMT Reply-To: From: "Nader S. Henein" To: "'Lucene Users List'" Subject: RE: searching only part of an index Date: Tue, 27 Apr 2004 17:00:04 +0400 Organization: Bayt.com Message-ID: <002601c42c57$943ed860$1801a8c0@naderit> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <6.0.0.22.2.20040427084936.0400cdd0@pop3.obs.com> 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 Are the DOC ids sequential? Or just unique and ascending, I'm thinking = like a good little Oracle boy, so does anyone know? -----Original Message----- From: Ioan Miftode [mailto:ioan@obs.com]=20 Sent: Tuesday, April 27, 2004 4:55 PM To: Lucene Users List Subject: Re: searching only part of an index If you know the id of the last document in the index. (I don't know what's the best way to get it) you could probably use a range query. something like find all docs with the id in [lastId-100 TO lastID]. = maybe you should make sure that the first limit is non negative, though. just a thought ioan At 08:02 AM 4/27/2004, you wrote: >Hi > >I wondered if anyone knows whether it is possible to search ONLY the=20 >100 >(or whatever) most recently added documents to a lucene index? I know = that=20 >once I have all my results ordered by ID number in Hits I could then = just=20 >display the required amount, but I wondered if there is a way to avoid=20 >searching all documents in the index in the first place? > >Many thanks > >Alan > >_________________________________________________________________ >Express yourself with cool new emoticons=20 >http://www.msn.co.uk/specials/myemo > > >--------------------------------------------------------------------- >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 --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org