From java-user-return-51366-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Sat Nov 26 20:36:58 2011 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 A1BB5936A for ; Sat, 26 Nov 2011 20:36:58 +0000 (UTC) Received: (qmail 18389 invoked by uid 500); 26 Nov 2011 20:36:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 18310 invoked by uid 500); 26 Nov 2011 20:36:55 -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 18300 invoked by uid 99); 26 Nov 2011 20:36:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 20:36:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cdoronc@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ey0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 20:36:49 +0000 Received: by eaal12 with SMTP id l12so1804408eaa.35 for ; Sat, 26 Nov 2011 12:36:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YEH7fpfK+AknN31u9474jubapnLHV8vkRT8nwsBOWMY=; b=C22IbVUtmxN3KdRIqovKFfRVRQ8VFzlaIjc++Rv+aBAvNMydneCGz9O2Sk9NMPxfNy hETwsd5Wj+BK3xZ+/RoVAW+cwyilWrA+3RkAfJqh5ug4VRxca6b8muoo+oYzmg72GXWo HTYIv9Zl97Ceb1UbHmbQ3DCMDrKZIzx2QU+kk= MIME-Version: 1.0 Received: by 10.213.28.194 with SMTP id n2mr2834738ebc.96.1322339788000; Sat, 26 Nov 2011 12:36:28 -0800 (PST) Received: by 10.213.15.7 with HTTP; Sat, 26 Nov 2011 12:36:27 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Nov 2011 22:36:27 +0200 Message-ID: Subject: Re: Taxonomy indexer debug From: Doron Cohen To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001517494856560d9b04b2a93965 --001517494856560d9b04b2a93965 Content-Type: text/plain; charset=ISO-8859-1 > > However there are at least two issues with this: > 1) the info would be in the lower level of the internal index writer, and > not in that of the categories logic. > 2) one cannot just call super.openIndexWriter(directory, openMode) and > modify the result before returning it, because once IW is opened it already > extracted its settings from IndexWriterConfig, and the infoStream for > example is final. > I just found out that the above holds for trunk, but is not true for 3x, so, assuming it is not trunk being used, overriding this method would be sufficient, as you can call super.openIW() and, just before returning the writer, set its info stream by IW.setInfoStream(). Doron --001517494856560d9b04b2a93965--