Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 68932 invoked from network); 11 May 2005 21:36:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2005 21:36:04 -0000 Received: (qmail 21577 invoked by uid 500); 11 May 2005 21:39:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 21549 invoked by uid 500); 11 May 2005 21:39:50 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 21534 invoked by uid 99); 11 May 2005 21:39:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtpauth05.mail.atl.earthlink.net (HELO smtpauth05.mail.atl.earthlink.net) (209.86.89.65) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 11 May 2005 14:39:50 -0700 Received: from [66.245.65.152] (helo=ENGELSSERVER) by smtpauth05.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DVys2-0006fU-9m for java-dev@lucene.apache.org; Wed, 11 May 2005 17:35:58 -0400 Reply-To: From: "Robert Engels" To: "Lucene-Dev" Subject: optimized reopen? Date: Wed, 11 May 2005 16:35:58 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0052_01C55647.82A89440" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-ELNK-Trace: 33cbdd8ed9881ca8776432462e451d7bd15d05d9470ff710287b069cf8919f7c1493f47bb1da5938350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.245.65.152 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0052_01C55647.82A89440 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Is there any way to optimize the closing & reopening of an Index? Since the IndexReader.open() opens a MultiReader is there are multiple segments, it seems a reopen() method could be implemented, which detects which segments are the same as the current open index, and then passes those SegementReaders to a new Multireader rather than creating new SegmentReaders for the unmodified segments. Does this sounds feasible? Would it improve the performance? Thanks ------=_NextPart_000_0052_01C55647.82A89440--