Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 71273 invoked from network); 8 May 2006 21:04:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 May 2006 21:04:06 -0000 Received: (qmail 14351 invoked by uid 500); 8 May 2006 21:04:05 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 13772 invoked by uid 500); 8 May 2006 21:04:03 -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 13761 invoked by uid 99); 8 May 2006 21:04:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2006 14:04:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2006 14:04:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 615DC410009 for ; Mon, 8 May 2006 21:03:22 +0000 (GMT) Message-ID: <5057006.1147122202369.JavaMail.jira@brutus> Date: Mon, 8 May 2006 21:03:22 +0000 (GMT+00:00) From: "Marvin Humphrey (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-510) IndexOutput.writeString() should write length in bytes In-Reply-To: <1345635080.1141324373822.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-510?page=comments#action_12378519 ] Marvin Humphrey commented on LUCENE-510: ---------------------------------------- The following patch... * Changes Lucene to use bytecounts as the prefix to all written Strings * Changes Lucene to write standard UTF-8 rather than Modified UTF-8 * Adds the new test classes MockIndexOutput and TestIndexOutput * Increases the number of tests in TestIndexInput It also slows Lucene down -- indexing takes around a 20% speed hit. It would be possible to submit a patch which had a smaller impact on performance, but this one is already over 700 lines long, and it's goal is to achieve standard UTF-8 compliance and modify the definition of Lucene strings as simply and reliably as possible. Optimization patches can now be submitted which build upon this one. Marvin Humphrey Rectangular Research http://www.rectangular.com/ > IndexOutput.writeString() should write length in bytes > ------------------------------------------------------ > > Key: LUCENE-510 > URL: http://issues.apache.org/jira/browse/LUCENE-510 > Project: Lucene - Java > Type: Improvement > Components: Store > Versions: 2.1 > Reporter: Doug Cutting > Fix For: 2.1 > > We should change the format of strings written to indexes so that the length of the string is in bytes, not Java characters. This issue has been discussed at: > http://www.mail-archive.com/java-dev@lucene.apache.org/msg01970.html > We must increment the file format number to indicate this change. At least the format number in the segments file should change. > I'm targetting this for 2.1, i.e., we shouldn't commit it to trunk until after 2.0 is released, to minimize incompatible changes between 1.9 and 2.0 (other than removal of deprecated features). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org