Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 7638 invoked from network); 15 Feb 2008 18:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 18:46:34 -0000 Received: (qmail 79956 invoked by uid 500); 15 Feb 2008 18:46:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 79933 invoked by uid 500); 15 Feb 2008 18:46:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 79918 invoked by uid 99); 15 Feb 2008 18:46:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 10:46:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 18:45:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 41E9B714077 for ; Fri, 15 Feb 2008 10:46:08 -0800 (PST) Message-ID: <10005308.1203101168266.JavaMail.jira@brutus> Date: Fri, 15 Feb 2008 10:46:08 -0800 (PST) From: "Jeffrey Yang (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1180) Syns2Index fails In-Reply-To: <13985158.1203100930609.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeffrey Yang updated LUCENE-1180: --------------------------------- Description: Running Syns2Index fails with a java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception. at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883) at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249) at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208) The code is here // blindly up these parameters for speed writer.setMergeFactor( writer.getMergeFactor() * 2); writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2); It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening. My suggestion would be to just remove these three lines. Since speed has already improved vastly, there isn't a need to speed things up. To run this, Syns2Index requires two args. The first is the location of the wn_s.pl file, and the second is the directory to create the index in. was: Running Syns2Index fails with a java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception. at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883) at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249) at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208) The code is here // blindly up these parameters for speed writer.setMergeFactor( writer.getMergeFactor() * 2); writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2); It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening. My suggestion would be to just remove these three lines. Since speed has already improved vastly, there isn't a need to speed things up. > Syns2Index fails > ---------------- > > Key: LUCENE-1180 > URL: https://issues.apache.org/jira/browse/LUCENE-1180 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/* > Affects Versions: 2.3 > Reporter: Jeffrey Yang > Priority: Minor > Original Estimate: 1h > Remaining Estimate: 1h > > Running Syns2Index fails with a > java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception. > at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883) > at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249) > at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208) > The code is here > // blindly up these parameters for speed > writer.setMergeFactor( writer.getMergeFactor() * 2); > writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2); > It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening. > My suggestion would be to just remove these three lines. Since speed has already improved vastly, there isn't a need to speed things up. > To run this, Syns2Index requires two args. The first is the location of the wn_s.pl file, and the second is the directory to create the index in. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org