Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 71887 invoked from network); 24 Sep 2007 14:26:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2007 14:26:26 -0000 Received: (qmail 66358 invoked by uid 500); 24 Sep 2007 14:26:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66326 invoked by uid 500); 24 Sep 2007 14:26:10 -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 66315 invoked by uid 99); 24 Sep 2007 14:26:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 07:26:09 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [208.97.132.5] (HELO spunkymail-a19.g.dreamhost.com) (208.97.132.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 14:26:10 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a19.g.dreamhost.com (Postfix) with ESMTP id 0C50211BCF for ; Mon, 24 Sep 2007 07:25:46 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <962ea6660709240654m4c1ab5cdvddce348f7c1aa7d7@mail.gmail.com> References: <962ea6660709240538q17c8e807x570183918700f34f@mail.gmail.com> <962ea6660709240654m4c1ab5cdvddce348f7c1aa7d7@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8BED0343-EA0F-47E1-B308-ED079C389678@apache.org> Content-Transfer-Encoding: 7bit From: Grant Ingersoll Subject: Re: index conversion Date: Mon, 24 Sep 2007 10:25:42 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Sep 24, 2007, at 9:54 AM, Bogdan Ghidireac wrote: > On 9/24/07, Doron Cohen wrote: >> >> For an already optimized index calling optimize() is a no-op. >> >> You may try this: after opening the writer and setting >> compound=false, add >> a dummy (even empty) document to the index, then optimize(), and >> finally >> optionally remove the dummy document. >> >> Note that calling optimize() might be lengthy as well for a large >> index. >> In >> any case, try this first on a trial index, and also make a backup >> of the >> existing index, just in case. > > > thanks, that worked smoothly .. > > > Why do you want to transform the index from compound to non > compound form? > > > My index is quite large (14GB) and this is because I use stored > fields. The > requirements of the project force me to have a response time below > 500ms and > I cannot do this at this moment (the tp99.9 is 700ms). > > What I am planning to do is to use the standard format so I can > move all > relevant files except .fdt and .fdx to a memory disk. After > conversion the > .fdt + .fdx files have around 11.5GB. > > I don't think there is an index reader that supports two locations > (one for > index data and another one for stored data) but I will modify an > existing > one and check the results. I believe this is the use case for ParallelReader (although I have never used it) but it comes with caveats. Search the archives and checkout the javadocs for info. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org