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 230191741E for ; Sun, 11 Jan 2015 22:27:30 +0000 (UTC) Received: (qmail 48688 invoked by uid 500); 11 Jan 2015 22:27:30 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 48617 invoked by uid 500); 11 Jan 2015 22:27:30 -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 48605 invoked by uid 99); 11 Jan 2015 22:27:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 22:27:29 +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.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 22:27:25 +0000 Received: by mail-ie0-f173.google.com with SMTP id y20so22724288ier.4 for ; Sun, 11 Jan 2015 14:26:19 -0800 (PST) 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=Z4O/F5Fl6eO8+u42zbXzSyhx42QvVT117RrzC6NokfU=; b=jkocsp67mDs7VL1TCJKikgv1gRZ1JK3iZZUpXFYmLktGwoWSNv6B7vbuBYNw/uruoA Wio3SHHQOpK2rcfUUwiashGovHfYH5myZ1FmSiDH/vBA3zyZgwwJGBtIF1/Qq3eYotzV KIGTbEgDUi1YWRvyo2Ro5UtSLArzjsCZZyKS77h0iSPLa1OX3nKxFofF4Tr0iDzOYl9J yodij13pz5pyiRpeMRoq6CHFxloD4Uoi5yp+FJJ7iTjip12r7dWpDXQ2LZlfj6Pg3Bgh vpGSD2hdklfEO0t5AcuB+KPRD1P3v3OUU+TfhncmLBCO52rna3h3SagJeNwEGILZHgtS odPA== X-Received: by 10.50.118.97 with SMTP id kl1mr12421505igb.23.1421015179474; Sun, 11 Jan 2015 14:26:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.59.38 with HTTP; Sun, 11 Jan 2015 14:25:59 -0800 (PST) In-Reply-To: References: From: Varun Thacker Date: Mon, 12 Jan 2015 02:25:59 +0400 Message-ID: Subject: Re: SegmentCommitInfos and live/deleted files To: java-user Content-Type: multipart/alternative; boundary=089e013a1118fe3e27050c67e082 X-Virus-Checked: Checked by ClamAV on apache.org --089e013a1118fe3e27050c67e082 Content-Type: text/plain; charset=UTF-8 Thanks Robert for pointing out the difference. On Sun, Jan 11, 2015 at 10:29 PM, Robert Muir wrote: > files are either per-segment or per-commit. > > the first only returns per-segment files. this means it won't include > any per-commit files: > * segments_N itself > * generational .liv for deletes > * generational .fnm/.dvd/etc for docvalues updates. > Understood. These files belong to a commit and not any segment. I didn't think of this earlier. > > the second includes per-commit files, too. it doesnt include the > segments_N itself because your code passes 'false' for that. > > On Sun, Jan 11, 2015 at 10:49 AM, Varun Thacker > wrote: > > I wanted to know whats the difference betwen the two ways that I am > getting > > a list of all segment files belonging to a segment? > > > > method1 never returns .liv files. > > > > https://gist.github.com/vthacker/98065232c3d2da579700 > > > > -- > > > > > > 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/ --089e013a1118fe3e27050c67e082--