Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32179 invoked from network); 20 Jun 2006 14:52:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 14:52:57 -0000 Received: (qmail 66656 invoked by uid 500); 20 Jun 2006 14:52:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66615 invoked by uid 500); 20 Jun 2006 14:52:51 -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 66595 invoked by uid 99); 20 Jun 2006 14:52:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 07:52:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.20.168.25] (HELO mail.spline-software.com) (217.20.168.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 07:52:49 -0700 Received: by mail.spline-software.com (Postfix, from userid 12) id ADEFD1CF54B; Tue, 20 Jun 2006 17:52:25 +0300 (EEST) Received: from [192.168.0.86] (vbychkoviak.jforce [192.168.0.86]) by mail.spline-software.com (Postfix) with ESMTP id E2E1050877 for ; Tue, 20 Jun 2006 17:52:23 +0300 (EEST) Message-ID: <44980BAB.4030507@i-hypergrid.com> Date: Tue, 20 Jun 2006 17:52:27 +0300 From: Volodymyr Bychkoviak User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: addIndexes() is taking infinite time ... References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------080507000008050602040204" X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on spline.jforce X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY autolearn=ham version=3.0.4 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080507000008050602040204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I guess that you're adding those indexes one by one.. You should add all indexes at once rather then adding them one by one. addIndexes() method takes array of directories/readers to add indexes. IndexWriter performs optimize() after adding indexes, so with your big index it can take long enough time. heritrix.lucene wrote: > Hi all, > I had five different indexes: > 1 having 15469008 documents > 2 having 7734504 documents > 3 having 7734504 documents > 4 having 7734504 documents > 5 having 7734504 documents > Which sums to 46407024. > The constant values are > maxMergeFactor = 1000 > maxBufferedDocs = 1000 > > I wrote a simple program which uses the addIndex method for adding > indexes. > It has been more then 32 hours adding the indexes. My logs say upto > now it > has finished only first two indexes. It is adding the third one. > I want to know what exactly happens while merging the indexes?? Why this > time grows exponentially ???? > Can anybody explain this in brief. > > Thanks in advance.. > With Regards > -- regards, Volodymyr Bychkoviak --------------080507000008050602040204--