Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 88021 invoked from network); 24 Nov 2003 04:36:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Nov 2003 04:36:17 -0000 Received: (qmail 9608 invoked by uid 500); 24 Nov 2003 04:35:52 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 9579 invoked by uid 500); 24 Nov 2003 04:35:52 -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 9565 invoked from network); 24 Nov 2003 04:35:52 -0000 Received: from unknown (HELO avalon.siteprotect.com) (64.26.0.99) by daedalus.apache.org with SMTP; 24 Nov 2003 04:35:52 -0000 Received: from victor (m018-230.nv.iinet.net.au [203.217.18.230]) by avalon.siteprotect.com (8.11.6/8.11.6) with ESMTP id hAO4a1529846 for ; Sun, 23 Nov 2003 22:36:01 -0600 Message-ID: <00e701c3b244$767c1730$ce00a8c0@victor> From: "Victor Hadianto" To: "Lucene Users List" References: <200311230349.hAN3nP8D026479@smtp15.singnet.com.sg> Subject: Re: Lucene refresh index function (incremental indexing). Date: Mon, 24 Nov 2003 15:35:58 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 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 > I delete the old ones and add them again manually. But how do I reindex the > documents automatically without doing it manually? You don't need to reindex the documents again. Lucene does incremental indexing. Just add your document to the index and that's it. You need to create a new IndexSearcher to reflect the new changes into the your search result. /victor > > -----Original Message----- > From: Dror Matalon [mailto:dror@zapatec.com] > Sent: Sunday, November 23, 2003 4:44 AM > To: Lucene Users List > Subject: Re: Lucene refresh index function (incremental indexing). > > Hi, > > It's not clear what you mean when you say "refresh indexes" or "re-compiling." > If you're adding new documents just use the add() method. If you are replacing > documents, you need to first delete the old ones and then add them again. Look > at the mailing list archive for this, since it's been discussed several times. > > > On Sun, Nov 23, 2003 at 12:22:40AM +0800, Tun Lin wrote: > > Hi, > > > > I am new here. > > > > May I know how to refresh indexes in Lucene immediately after new > > documents have been added without re-compiling again to reindex the > > documents in that particular directory? > > > > Thanks. > > -- > Dror Matalon > Zapatec Inc > 1700 MLK Way > Berkeley, CA 94709 > http://www.fastbuzz.com > http://www.zapatec.com > > --------------------------------------------------------------------- > 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