Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28E601090F for ; Tue, 29 Apr 2014 12:22:52 +0000 (UTC) Received: (qmail 4567 invoked by uid 500); 29 Apr 2014 12:22:49 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4467 invoked by uid 500); 29 Apr 2014 12:22:46 -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 4459 invoked by uid 99); 29 Apr 2014 12:22:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 12:22:45 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of varunthacker1989@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-la0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 12:22:42 +0000 Received: by mail-la0-f44.google.com with SMTP id hr17so89693lab.3 for ; Tue, 29 Apr 2014 05:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=FrcFHR0tQ39mvcR9KjecHJX6dZSgSaPy8fUmaJtoMu8=; b=zAyarFU7O4rU9rDYjAQvLzRWnePnnNTGD+zOlAGl4bKecye3Grmq6ldVH3g35H35n3 jNFgjKWRV1TotX4rqnCw4/Pc3D3RXY2BeLQswPBC8qvVfsQIu3XhjKUgLpykIRGtBsAW 631upRJXe5IgMlOdaSgBqH+D8c7nqacq8c5woSl3BCK2Uk5VcZGgvs+1Cfv8ExYHScXf zEOmSi1ObWtHYrUOQd4G3BuvY7/WvzwcGIbWX5y7IdA55UNGz+2sUnZlQgmKdVjV7Y7Z zJdz6DZ7su9PpXrdSMQ2AM15gYEUvJQqRGc/Q2aMkCm+TZCdZOTJLeA+qhlYXqUr/eV4 zvkA== X-Received: by 10.112.72.137 with SMTP id d9mr8484499lbv.19.1398774140597; Tue, 29 Apr 2014 05:22:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.177.33 with HTTP; Tue, 29 Apr 2014 05:22:00 -0700 (PDT) In-Reply-To: References: From: Varun Thacker Date: Tue, 29 Apr 2014 17:52:00 +0530 Message-ID: Subject: Re: No Compound Files To: java-user Content-Type: multipart/alternative; boundary=001a11c24184c57c9d04f82d7bd7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c24184c57c9d04f82d7bd7 Content-Type: text/plain; charset=UTF-8 Thanks for the response. I was not aware of IWC.setUseCompoundFile . @Shai this is what I feel is confusing - From what I understand NoMergePolicy means no merges. Hence why have two separate options? On Tue, Apr 29, 2014 at 5:44 PM, Shai Erera wrote: > The problem is that compound files settings are split between MergePolicy > and IndexWriterConfig. As documented on IWC.setUseCompoundFile, this > setting controls how new segments are flushed, while the MP setting > controls how merged segments are written. > > If we only offer NoMP.INSTANCE, what would it do w/ merged segments? always > compound? always not-compound? But that won't solve the problem of new > flushed segments, since that's controlled by IWC. > > If we can move all of that to IWC, I think it will remove the confusion.. > it always confuses me that I use NoMP.COMPUND, yet I see non-compound > segments, until I remember to change the IWC setting. > > Shai > > > On Tue, Apr 29, 2014 at 3:07 PM, Robert Muir wrote: > > > I think NoMergePolicy.NO_COMPOUND_FILES and > > NoMergePolicy.COMPOUND_FILES should be removed, and replaced with > > NoMergePolicy.INSTANCE > > > > If you want to change whether CFS is used by indexwriter flush, you > > need to set that in IndexWriterConfig. > > > > On Tue, Apr 29, 2014 at 8:03 AM, Varun Thacker > > wrote: > > > I wanted to use the NoMergePolicy.NO_COMPOUND_FILES to ensure that no > > > merges take place on the index. However I was unsuccessful at it. What > I > > am > > > doing wrong here. > > > > > > Attaching a gist with - > > > 1. Output when using NoMergePolicy.NO_COMPOUND_FILES > > > 2. Output when using TieredMergePolicy with policy.setNoCFSRatio(0.0) > > > 3. The code snippet I used. > > > > > > https://gist.github.com/vthacker/11398124 > > > > > > I tried it using Lucene 4.7 > > > > > > > > > > > > > > > > > > -- > > > > > > > > > Regards, > > > Varun Thacker > > > http://www.vthacker.in/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > -- Regards, Varun Thacker http://www.vthacker.in/ --001a11c24184c57c9d04f82d7bd7--