Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2DABE200B3B for ; Mon, 11 Jul 2016 13:46:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2C5BF160A78; Mon, 11 Jul 2016 11:46:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74303160A62 for ; Mon, 11 Jul 2016 13:46:32 +0200 (CEST) Received: (qmail 93284 invoked by uid 500); 11 Jul 2016 11:46:31 -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 93271 invoked by uid 99); 11 Jul 2016 11:46:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 11:46:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 64ED8C706D for ; Mon, 11 Jul 2016 11:46:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.321 X-Spam-Level: X-Spam-Status: No, score=-2.321 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xpFHUfHScMGQ for ; Mon, 11 Jul 2016 11:46:28 +0000 (UTC) Received: from mail5bis.servidoreswindows.net (mail5bis.servidoreswindows.net [84.246.209.89]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id A656D5FBF9 for ; Mon, 11 Jul 2016 11:46:27 +0000 (UTC) Received: from ([85.52.126.199]) by mail5bis.servidoreswindows.net (IceWarp 10.4.4) with ASMTP (SSL) id ZSE30457 for ; Mon, 11 Jul 2016 13:45:57 +0200 To: java-user@lucene.apache.org From: Jaime Subject: Reduce index size without reopening IndexWriter Message-ID: Date: Mon, 11 Jul 2016 13:45:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable archived-at: Mon, 11 Jul 2016 11:46:33 -0000 I use Lucene 6.1.0 (no solr) with NRT search. At runtime, my index seems = to grow a lot. I think that for each commit, a new copy of the index is made. This=20 makes sense as an old searcher could be using the previous version.=20 However, the old copies don't seem to be erased until I close and reopen = the Index Writer. I've tried calling IndexWriter.deleteUnusedFiles after each commit, but=20 didn't help. Is there any way to free space without closing the IndexWriter? --=20 Jaime Pardos ESTRUCTURE MEDIA SYSTEMS, S.L. Avda. de Madrid n=C2=BA 120 nave 10, 28500, Arganda del Rey, MADRID, j.pardos@estructure.es 910088429 =20 AVISO LEGAL: Este mensaje y sus archivos adjuntos van dirigidos exclusiva= mente a su destinatario, pudiendo contener informaci=C3=B3n confidencial = sometida a secreto confidencial. No est=C3=A1 permitida su reproducci=C3=B3= n o distribuci=C3=B3n sin la autorizaci=C3=B3n expresa de ESTRUCTURE MEDI= A SYSTEMS, S.L.. Si usted no es el destinatario final por favor elim=C3=AD= nelo e inf=C3=B3rmenos por esta v=C3=ADa. De acuerdo con lo establecido e= n la Ley Org=C3=A1nica 15/1999, de 13 de diciembre, de Protecci=C3=B3n de= Datos de Car=C3=A1cter Personal (LOPD), le informamos que sus datos est=C3= =A1n incorporados en un fichero del que es titular ESTRUCTURE MEDIA SYSTE= MS, S.L. con la finalidad de realizar la gesti=C3=B3n administrativa, con= table, y fiscal, as=C3=AD como enviarle comunicaciones comerciales sobre = nuestros productos y/o servicios. Asimismo, le informamos de la posibilid= ad de ejercer los derechos de acceso, rectificaci=C3=B3n, cancelaci=C3=B3= n y oposici=C3=B3n de sus datos en el domicilio de ESTRUCTURE MEDIA SYSTE= MS, S.L., sito en Avda. de Madrid n=C2=BA 120 nave 10, 28500, Arganda del= Rey, MADRID, o a la direcci=C3=B3n de correo electr=C3=B3nico info@estru= cture.es. =20 This message and its attachments are intended solely for the addressee an= d may contain confidential information submitted to confidential secret. = It is not allowed its reproduction or distribution without the express pe= rmission of ESTRUCTURE MEDIA SYSTEMS, S.L. .. If you are not the intended= recipient please delete it and inform us in this way. According to the p= rovisions of Law 15/1999, of December 13, Protection of Personal Data (LO= PD), we inform you that your data is incorporated into a file which is ow= ned by ESTRUCTURE MEDIA SYSTEMS, S.L. in order to perform administrative,= accounting and fiscal management, as well as send you communications abo= ut our products and / or services. Also we advised of the possibility of = exercising rights of access, rectification, cancellation and opposition o= f their data at the home of ESTRUCTURE MEDIA SYSTEMS, SL, located in Avda= =2E De Madrid # 120 ship 10 28500, Arganda del Rey, Madrid , or email add= ress info@estructure.es. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org