Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 43641 invoked from network); 30 Jun 2006 20:02:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 20:02:59 -0000 Received: (qmail 81338 invoked by uid 500); 30 Jun 2006 20:02:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 81314 invoked by uid 500); 30 Jun 2006 20:02:53 -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 81303 invoked by uid 99); 30 Jun 2006 20:02:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 13:02:53 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.38.57] (HELO web50303.mail.yahoo.com) (206.190.38.57) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Jun 2006 13:02:52 -0700 Received: (qmail 25598 invoked by uid 60001); 30 Jun 2006 20:02:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Aqv45vTejt3V/nWEHUzR3E5Y8LAhTDBotakoEaMlpZh4djod3oZNJaMplwvtQMML3zKB+JVvu4Fy80H7gu+f2z7cSJEVbIGR1JhPDVOwY+jecWnc93VmgAok4niJiLQSJc+9MX2jwkn+Jkt+P6++nfWgmijC5Jt8to1Nd9wlmQw= ; Message-ID: <20060630200231.25596.qmail@web50303.mail.yahoo.com> Received: from [72.229.167.99] by web50303.mail.yahoo.com via HTTP; Fri, 30 Jun 2006 13:02:31 PDT Date: Fri, 30 Jun 2006 13:02:31 -0700 (PDT) From: Otis Gospodnetic Reply-To: Otis Gospodnetic Subject: Re: Changing the MergeFactor - should I reindex? To: java-user@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Monsur, You don't need to reindex everything after changing merge factor. As for growing the .del file, I believe the .del file simply keeps track of documents that have been deleted (and should thus not show up in search results). Thus, I think you can let the file grow, although at some point it may make sense to optimize everything - I'm not sure how much reader.isDeleted(docNum) calls affect performance when the number of documents gets large.... but you'll find out :) And when you do, all you'll need to do is optimize the index on the indexing server and push it to the search server. Otis ----- Original Message ---- From: Monsur Hossain To: java-user@lucene.apache.org Sent: Friday, June 30, 2006 3:39:27 PM Subject: Changing the MergeFactor - should I reindex? I have a system of 2 servers, one to index and one to search. The index server updates the Lucene index and then copies the 200 meg index over to the search server. Originally, the index server would optimize the index before copying. To improve performance, I stopped optimizing, dropped the mergefactor down to 2, and then copied only the changed segments to the search server (most of the runtime was taken up optimizing and copying the index; this change dropped the runtime from 2 minutes down to 2 seconds!). After switching to this system, I've noticed that the .del file for the original 200 meg segment is growing pretty large (I'm updating every 2 minutes, and there are always some deletions/additions). My question is this: Am I fine letting this .del file grow, or should I reindex the entire index with a mergefactor of 2 (to better distribute the deletions)? Monsur --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org