Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 27737 invoked from network); 1 Oct 2007 08:13:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 08:13:47 -0000 Received: (qmail 24557 invoked by uid 500); 1 Oct 2007 08:13:31 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 24510 invoked by uid 500); 1 Oct 2007 08:13:31 -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 24497 invoked by uid 99); 1 Oct 2007 08:13:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:13:31 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB 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; Mon, 01 Oct 2007 08:13:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B99D771420E for ; Mon, 1 Oct 2007 01:12:50 -0700 (PDT) Message-ID: <32168695.1191226370757.JavaMail.jira@brutus> Date: Mon, 1 Oct 2007 01:12:50 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-1013) IndexWriter.setMaxMergeDocs gives non-backwards-compatible exception "out of the box" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org IndexWriter.setMaxMergeDocs gives non-backwards-compatible exception "out of the box" ------------------------------------------------------------------------------------- Key: LUCENE-1013 URL: https://issues.apache.org/jira/browse/LUCENE-1013 Project: Lucene - Java Issue Type: Bug Components: Index Affects Versions: 2.3 Reporter: Michael McCandless Assignee: Michael McCandless Fix For: 2.3 Yonik hit this (see details in LUCENE-994): because we have switched to LogByteSizeMergePolicy by default in IndexWriter, which uses MB to limit max size of merges (setMaxMergeMB), when an existing app calls setMaxMergeDocs (or getMaxMergeDocs) it will hit an IllegalArgumentException on dropping in the new JAR. I think the simplest solution is to fix LogByteSizeMergePolicy to allow setting of the max by either MB or by doc count, just like how in LUCENE-1007 allows flushing by either MB or docCount or both. -- 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