Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 46643 invoked from network); 1 Dec 2006 20:00:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2006 20:00:19 -0000 Received: (qmail 65062 invoked by uid 500); 1 Dec 2006 20:00:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 65032 invoked by uid 500); 1 Dec 2006 20:00:20 -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 65017 invoked by uid 99); 1 Dec 2006 20:00:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 12:00:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 12:00:09 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 10A435B76E; Fri, 1 Dec 2006 11:59:49 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 0B1937F403 for ; Fri, 1 Dec 2006 11:59:49 -0800 (PST) Date: Fri, 1 Dec 2006 11:59:49 -0800 (PST) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: an alternative to optimize? In-Reply-To: <46C3AE6A-D9F9-4F4A-85CC-656523F0B681@apache.org> Message-ID: References: <1164969113.7354.12.camel@nils-laptop> <45702A05.2000105@sirma.bg> <46C3AE6A-D9F9-4F4A-85CC-656523F0B681@apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : I haven't tried it, but according to http://lucene.apache.org/java/ : docs/fileformats.html, each segment is a complete sub index. I : _wonder_ if you couldn't manage your own merges by using : IndexWriter.addIndexes() where you load each segment in separately : (this may mean copying the segments to other directories, but I am more specificly: opening an IndexReader on a an index with multiple segments is functionally the same as opening a MultiReader on several indexes with single segments. so instead of having one index, and carefully controlling maxMergeDocs, you could manually create many small indexes, all of which you continiously optimize (both to remove deletions, and to keep the index at a single segment) which you then explicly open a multi reader on. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org