From java-user-return-29054-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Fri Jul 06 14:49:43 2007 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 47850 invoked from network); 6 Jul 2007 07:17:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 07:17:29 -0000 Received: (qmail 100 invoked by uid 500); 6 Jul 2007 14:17:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 99948 invoked by uid 500); 6 Jul 2007 14:17:21 -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 99937 invoked by uid 99); 6 Jul 2007 14:17:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 07:17:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.128.225.190] (HELO spmler1.mail.eds.com) (194.128.225.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 07:17:13 -0700 Received: from spmlir2.mail.eds.com (spmlir2.mail.eds.com [205.191.69.42]) by spmler1.mail.eds.com (8.13.8/8.13.8) with ESMTP id l66EGoM2010646 for ; Fri, 6 Jul 2007 15:16:50 +0100 Received: from spmlir2.mail.eds.com (localhost.localdomain [127.0.0.1]) by spmlir2.mail.eds.com (8.13.8/8.12.10) with ESMTP id l66EGatv012837 for ; Fri, 6 Jul 2007 15:16:36 +0100 Received: from DERUM100.emea.corp.eds.com ([205.239.192.123]) by spmlir2.mail.eds.com (8.13.8/8.12.10) with ESMTP id l66EGZNk012775 for ; Fri, 6 Jul 2007 15:16:36 +0100 Received: from derum202.emea.corp.eds.com ([145.16.186.20]) by DERUM100.emea.corp.eds.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 6 Jul 2007 16:16:28 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7BFD8.3E46DEA4" Subject: document delete after reader.close() Date: Fri, 6 Jul 2007 16:16:23 +0200 Message-ID: <2DD42166EF0A554B83F30B6F7B0CBA5C0BBDA5@derum202.emea.corp.eds.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: document delete after reader.close() Thread-Index: Ace/2DuwxVSFja5JQf2zjvo4RQsJIw== From: "Boeckli, Dominique" To: X-OriginalArrivalTime: 06 Jul 2007 14:16:28.0270 (UTC) FILETIME=[3E5138E0:01C7BFD8] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7BFD8.3E46DEA4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, i have following problem: I have written a Lucene JCA Connector which also taking care of the index maintenance. From time to time the connector is called (time initiated) and verifies if the index still is in synch with the filesystem (deleted, added or updated documents). If something changes, for example when a file was deleted, then the documents are delete from the index as well: IndexReader reader =3D getIndexReader(); for (int i=3D0; i