Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33615 invoked from network); 31 Mar 2006 04:36:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Mar 2006 04:36:52 -0000 Received: (qmail 79429 invoked by uid 500); 31 Mar 2006 04:36:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 79401 invoked by uid 500); 31 Mar 2006 04:36:47 -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 79388 invoked by uid 99); 31 Mar 2006 04:36:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 20:36:47 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.178.51] (HELO web33804.mail.mud.yahoo.com) (66.163.178.51) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 30 Mar 2006 20:36:46 -0800 Received: (qmail 85138 invoked by uid 60001); 31 Mar 2006 04:36:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lkjgftc0CetqwboiqxjprMjcqbG9NGofdg1fpISa5m2bUMxzWZKOzorha5GvYpTc4teBKxnjQnlGSVqHNX7pVE25O3qlQIbEZ0R+UgGxbZS3eNbGV0iphwVw2DNk61HWesZvOStyF+o7jixlxVKncWPo3ifTmo9OdMJzpARcTgc= ; Message-ID: <20060331043625.85133.qmail@web33804.mail.mud.yahoo.com> Received: from [59.95.169.229] by web33804.mail.mud.yahoo.com via HTTP; Thu, 30 Mar 2006 20:36:25 PST Date: Thu, 30 Mar 2006 20:36:25 -0800 (PST) From: depsi programmer Subject: RE: Compound Indexes Problem To: java-user@lucene.apache.org In-Reply-To: <000901c65435$ef28b4a0$fc01a8c0@bigfly> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-732396603-1143779785=:83061" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-732396603-1143779785=:83061 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, Thanks for your responce. can you please guide me on how to break this single index into multiple pieces. when I try to do so it corrupts the index. I had created a index with max merge docs set to 10,000 with set compound indexes set to true. now I called optimize with max merge docs set to 100 and the index was curropted Thanks Depsi Dennis Kubes wrote: According to the Lucene In Action book you can convert from one compound to multi-file and vice versa by setting the setCompoundFile method to true or false. But in running this myself I found that while I can convert from multi-file to compound, it doesn't convert back. Here is the code that I used. try { System.setProperty("org.apache.lucene.lockDir", "lock-directory-path-here"); String idxDir = "index-directory-path-here"; IndexWriter writer = new IndexWriter(idxDir, new StandardAnalyzer(), false); writer.setUseCompoundFile(false); writer.optimize(); writer.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Dennis -----Original Message----- From: depsi programmer [mailto:depsi_programmer@yahoo.com] Sent: Thursday, March 30, 2006 7:57 AM To: java-user@lucene.apache.org Subject: Compound Indexes Problem Hello, I am using lucene for storing details of my students. I have used SetUseCompoundFile(True) and optimised the indexes. Now I am not able to convert them back to their original form Thanks in advance Depsi --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------- How low will we go? Check out Yahoo! Messenger�s low PC-to-Phone call rates. --0-732396603-1143779785=:83061--