From lucene-user-return-2301-qmlist-jakarta-archive-lucene-user=jakarta.apache.org@jakarta.apache.org Wed Aug 07 12:22:50 2002 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 98981 invoked from network); 7 Aug 2002 12:22:50 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Aug 2002 12:22:50 -0000 Received: (qmail 18778 invoked by uid 97); 7 Aug 2002 12:23:10 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 18762 invoked by uid 97); 7 Aug 2002 12:23:10 -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 18750 invoked by uid 98); 7 Aug 2002 12:23:09 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Reply-To: From: "Nader S. Henein" To: "Lucene Users List" Subject: RE: A question about indexing Date: Wed, 7 Aug 2002 16:25:15 +0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20020807121557.18335.qmail@web21409.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That's how Lucene indexes, I guess what you're doing is you're initializing the index writer every time you want to add a file witch would delete the previously existing index. Make sure you only initialize the index writer ex: writer = new IndexWriter(indexPath,Analyzer,true); only in the beginning when you're first creating the index Nader Henein -----Original Message----- From: karimi hadi [mailto:karimi_hadi@yahoo.com] Sent: Wednesday, August 07, 2002 4:16 PM To: lucene-user@jakarta.apache.org Subject: A question about indexing I want to index some documents with lucene in one FSDirectory. I want to do it in defferent sessions. In each try, Lucene overwrites the older data in the FSDirectory. I want to index my documents in the incremental manner that it seems to be not an unusual approach. Is it possible to use Lucene in this way? If yes, How I can do it ? Best Regards. Hadi . __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: