Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 59951 invoked from network); 8 Aug 2005 23:14:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 23:14:42 -0000 Received: (qmail 48554 invoked by uid 500); 8 Aug 2005 23:14:42 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 48535 invoked by uid 500); 8 Aug 2005 23:14:42 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 48522 invoked by uid 99); 8 Aug 2005 23:14:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 16:14:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lavafish@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 16:15:03 -0700 Received: by zproxy.gmail.com with SMTP id n29so73458nzf for ; Mon, 08 Aug 2005 16:14:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GXdcLVWGUxXr2Jf6TRb3J/tgapkQi9/EkteIIhGkimcqpEA/fpNW8378xm4XwE/VzGKQOG4cKocAdr6W0fWkBks94tZZYLuBTk6/Z5IhG77CBs1jjFVku0wK0b/TQxPw4TyRsl8KaXyfjRzjopbyBLEHO5leIvNMLHE0qfv9C74= Received: by 10.36.10.12 with SMTP id 12mr212770nzj; Mon, 08 Aug 2005 16:14:39 -0700 (PDT) Received: by 10.36.251.42 with HTTP; Mon, 8 Aug 2005 16:14:39 -0700 (PDT) Message-ID: <50a1290508081614182cafe@mail.gmail.com> Date: Mon, 8 Aug 2005 19:14:39 -0400 From: Greg Love To: general@lucene.apache.org Subject: IndexWriter and IndexReader open at the same time Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, I have an application that gets many delete and write resquests at the same time. to avoid opening and closing the IndexWriter and IndexReader everytime one of them need to do a write operation, i keep them both open and have a shared lock around them whenever i need to use them for writing. everything seems to be working in order, but i'm not sure if this is a safe thing to do. please let me know. thank you,=20 lavafish