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 A89EE9777 for ; Tue, 6 Dec 2011 06:05:18 +0000 (UTC) Received: (qmail 6837 invoked by uid 500); 6 Dec 2011 06:05:16 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6388 invoked by uid 500); 6 Dec 2011 06:05:15 -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 6380 invoked by uid 99); 6 Dec 2011 06:05:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 06:05:14 +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 (nike.apache.org: domain of nskarthik.k@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-yx0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 06:05:07 +0000 Received: by yenm10 with SMTP id m10so4743990yen.35 for ; Mon, 05 Dec 2011 22:04:47 -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=MzkdFyaqNvzt0l37K4hk2g6aQ0ww7GP8Vc1mCGbBUSs=; b=bRJ9lxGyY6DVDMCq2F6MiRLWHpFFPFbm24ez+vIoaQZH7A4yZBWloD8o2OzdDBmIvl zQibv3wKCWFuvsZ3r110oM9pgdHb4PppBmF/E7je9IglhiVj4VnCEaRBR+3lmixKLKkK sSbiB80cmiIOPK7rvZEdbzB2qtEoundi4/M38= MIME-Version: 1.0 Received: by 10.236.181.161 with SMTP id l21mr16993224yhm.110.1323151486971; Mon, 05 Dec 2011 22:04:46 -0800 (PST) Received: by 10.146.195.3 with HTTP; Mon, 5 Dec 2011 22:04:46 -0800 (PST) In-Reply-To: References: Date: Tue, 6 Dec 2011 11:34:46 +0530 Message-ID: Subject: Re: lucene-core-3.3.0 not optimizing From: KARTHIK SHIVAKUMAR To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=20cf30426dc45d702204b3663652 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30426dc45d702204b3663652 Content-Type: text/plain; charset=ISO-8859-1 Hi >>LUCENE-3454 : So u mean the code has changed with this API ... Does any body have any sample code snippet .... or is there a sample to play around.... with regards karthik On Fri, Dec 2, 2011 at 3:44 PM, Ian Lea wrote: > Well, calling optimize(maxNumSegments) will (from the javadocs on > recent releases) "Optimize the index down to <= maxNumSegments". So > optimize(100) won't get you down to 1 big file, unless you are using > compound files perhaps. Maybe it did something different 7 years ago > but that seems very unlikely. > > In 3.5.0 all optimize() calls are deprecated anyway. I suggest you > read the release notes and the javadocs, upgrade to 3.5.0 and remove > all optimize() calls altogether. > > > -- > Ian. > > > On Fri, Dec 2, 2011 at 9:58 AM, KARTHIK SHIVAKUMAR > wrote: > > Hi > > > > I have used Index and Optimize 5+ Million XML docs in Lucene 1.x 7 > > years ago, > > > > And this piece of IndexWriter.optimize used to Merger all the bits and > > pieces of the created into 1 big file. > > > > I have not tracked the API changes since 7 years....and with > > lucene-core-3.3.0 ...on google not able to find the solutions Why this > is > > happening. > > > > > > with regards > > karthik > > > > On Fri, Dec 2, 2011 at 12:37 PM, Simon Willnauer < > > simon.willnauer@googlemail.com> wrote: > > > >> what do you understand when you say optimize? Unless you tell us what > >> this code does in your case and what you'd expect it doing its > >> impossible to give you any reasonable answer. > >> > >> simon > >> > >> On Fri, Dec 2, 2011 at 4:54 AM, KARTHIK SHIVAKUMAR > >> wrote: > >> > Hi > >> > > >> > Spec > >> > O/s win os 7 > >> > Jdk : 1.6.0_29 > >> > Lucene lucene-core-3.3.0 > >> > > >> > > >> > > >> > Finally after Indexing successfully ,Why this Code does not optimize ( > >> > sample code ) > >> > > >> > INDEX_WRITER.optimize(100); > >> > INDEX_WRITER.commit(); > >> > INDEX_WRITER.close(); > >> > > >> > > >> > *N.S.KARTHIK > >> > R.M.S.COLONY > >> > BEHIND BANK OF INDIA > >> > R.M.V 2ND STAGE > >> > BANGALORE > >> > 560094* > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > >> For additional commands, e-mail: java-user-help@lucene.apache.org > >> > >> > > > > > > -- > > *N.S.KARTHIK > > R.M.S.COLONY > > BEHIND BANK OF INDIA > > R.M.V 2ND STAGE > > BANGALORE > > 560094* > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- *N.S.KARTHIK R.M.S.COLONY BEHIND BANK OF INDIA R.M.V 2ND STAGE BANGALORE 560094* --20cf30426dc45d702204b3663652--