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 9CF21200B2D for ; Thu, 16 Jun 2016 13:19:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99F54160A52; Thu, 16 Jun 2016 11:19:02 +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 E3E40160A51 for ; Thu, 16 Jun 2016 13:19:01 +0200 (CEST) Received: (qmail 2998 invoked by uid 500); 16 Jun 2016 11:19:00 -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 2986 invoked by uid 99); 16 Jun 2016 11:19:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 11:19:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D5F6DC0E1C for ; Thu, 16 Jun 2016 11:18:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9lMVj4aohBkG for ; Thu, 16 Jun 2016 11:18:59 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id BD7FD5F1B3 for ; Thu, 16 Jun 2016 11:18:58 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id p204so63541427oih.3 for ; Thu, 16 Jun 2016 04:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=uaUaiGrlz1mEWN3fdGV8w0wZmPZzxwlbf1js0XEyMlc=; b=ET1gNh8/TOwBNIAxnc2WfA8ekXLiL3+5SZ+VILovirUXAtr7w0dRyLSPdKRI2tuRBq M9DCBRfj0Q1/FeDudrHCPV9YdO3J6qVKIR0xZ/dOTkVSWC+sz0K+YBotAoldJy5FTUIM Sx539Cmj5q4u2mqi04wnsZYNYEgj2WPVDfJ6mEN5BXfKSPsIa7X2p3Jt08yjTe5GER83 We+auEg0d+Oklzv8HjWEVTUDTWTYXSJ89BJo9NovQx1s2H15ainBJTqj0nPZ/KiDcKgC xC8fG19UsXRybEnhGcV/yXhDUbGqeHKwiIeVSmfuUeKoSJA5cLBmMEQhvJ7RPKg26g21 s5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uaUaiGrlz1mEWN3fdGV8w0wZmPZzxwlbf1js0XEyMlc=; b=N2xRXQDc2OlQciIbnoSH4/em3pw5jjPzcmpOJTxk8qxE72jrGcrkd9NyKDOQHxl666 1Qx7uFUSGeKBtm3gflKRdOeKRh3gIx3SZ3GzqSOx5NxYWgn+yIqg8E/RF0G0YDcyVX9g XMEW4eHuN/GdV6m5fyf0jvGBBztHDeyt5n5kxJhlt+t5vHPB3vhUw5RjioDJ3qJTmxbo 3JhvVSmdT99hsNTOqde4TRjm5mJmJKc02sTMVQIer9PyzsV3yMo/MzVHizV6iIgMFDCa 1aQUA9wo6cw5wEMYmPLUNGCV/jgPWdL93VfaoRtYH7XrJ4l1yOchS+SVAHlRkahLKEF0 cKWA== X-Gm-Message-State: ALyK8tLBX9ViT1lxoVqSkWRXjWqfQJktwlQBLSDTFC6EH3kSscaAEiJrNhInrgXGDfDQXv2HQCYekR+b8AzLGg== X-Received: by 10.157.37.89 with SMTP id j25mr1822462otd.167.1466075938066; Thu, 16 Jun 2016 04:18:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.47.8 with HTTP; Thu, 16 Jun 2016 04:18:57 -0700 (PDT) From: Ravikumar Govindarajan Date: Thu, 16 Jun 2016 16:48:57 +0530 Message-ID: Subject: IndexWriterConfig.readerPooling option... To: "java-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a113d140c8097230535636795 archived-at: Thu, 16 Jun 2016 11:19:02 -0000 --001a113d140c8097230535636795 Content-Type: text/plain; charset=UTF-8 Came across a JIRA filed for pooling IndexReaders https://issues.apache.org/jira/browse/LUCENE-2297 For every commit/delete/update cycle IndexWriter opens a bunch of SegmentReaders, does the job & closes it. Does the JIRA aim to re-use the SegmentReaders for all commit-cycles till they are finally closed (after a merge, rollback, iw.close() etc...) ? Also, we use DirectoryReader.open(dir) construct for searching. Is the SegmentReader instances associated with this different from that IndexWriter's & thus have different life-cycle? Could someone please help in understanding this readerPooling option -- Ravi --001a113d140c8097230535636795--