From general-return-1274-apmail-lucene-general-archive=lucene.apache.org@lucene.apache.org Thu Apr 16 16:37:32 2009 Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 75022 invoked from network); 16 Apr 2009 16:37:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 16:37:32 -0000 Received: (qmail 28635 invoked by uid 500); 16 Apr 2009 16:37:32 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 28576 invoked by uid 500); 16 Apr 2009 16:37:31 -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 28566 invoked by uid 99); 16 Apr 2009 16:37:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 16:37:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 74.125.92.25 as permitted sender) Received: from [74.125.92.25] (HELO qw-out-2122.google.com) (74.125.92.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 16:37:23 +0000 Received: by qw-out-2122.google.com with SMTP id 8so374551qwh.53 for ; Thu, 16 Apr 2009 09:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=kDwC58mWhVvccGwoe9fql9W/QDwjm35MFKZ7nS+BHnA=; b=sYg91qkZAK+RKEo8hEFOBLDB8JbedMU09HYzrzgDyw8TB3E0ZTEUknSdap0vnxViRJ saj/MPQVPBpmwVRse1XnT8p6+Q8SNhEV1mFA/fYpmxNbmcVCbzMf9WrEQE8qwwf0HTOY kC49PbTIrpE/NA2q7p5mQHMjU94BtNmkWeCQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=kJ9NTTYdgY1Tvs1MsBYjrB9Dgeey0cmqtB326gY70cJAiWbUfvBa8WH6jOGlQM0q7s xR0QGk47dAAQ0SumAqDaBhM/Z3gpW+7O//lbAVMObedaZWXmZW7VWoECqm0B3Hb2ara+ 264ynctRQQG69zeLYRxyNAL4w9TwVizzq1rAc= MIME-Version: 1.0 Received: by 10.224.3.17 with SMTP id 17mr2016531qal.363.1239899822376; Thu, 16 Apr 2009 09:37:02 -0700 (PDT) In-Reply-To: <23078413.post@talk.nabble.com> References: <23078413.post@talk.nabble.com> From: Ted Dunning Date: Thu, 16 Apr 2009 09:36:47 -0700 Message-ID: Subject: Re: segment ? new segment after a commit To: general@lucene.apache.org Content-Type: multipart/alternative; boundary=0015175cb7e47849aa0467aeac60 X-Virus-Checked: Checked by ClamAV on apache.org --0015175cb7e47849aa0467aeac60 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Here is a link to a talk that Doug gave describing the basics of the indexing process. It should answer your questions. http://lucene.sourceforge.net/talks/pisa/ The basic answer is that adding documents increases the size of the smaller files until they get big enough to merge and then when the merged result gets bigger, it gets merged to the next file. If you add a small number of new documents, measured as a fraction of all documents, then only a few files will change. If you had many documents, then many files will change. On Thu, Apr 16, 2009 at 6:51 AM, sunnyfr wrote: > > > I just made an update : > Indexing completed. Added/Updated: 6327 documents. Deleted 0 documents. > > But I don"t get why it doesn't just add a new segment instead of change all > the segment. > > --0015175cb7e47849aa0467aeac60--