Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2C3E71F8 for ; Mon, 24 Oct 2011 14:11:55 +0000 (UTC) Received: (qmail 41613 invoked by uid 500); 24 Oct 2011 14:11:54 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 41561 invoked by uid 500); 24 Oct 2011 14:11:54 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 41552 invoked by uid 99); 24 Oct 2011 14:11:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 14:11:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,T_FRT_BEFORE X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 14:11:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 22A9E31969F for ; Mon, 24 Oct 2011 14:09:32 +0000 (UTC) Date: Mon, 24 Oct 2011 14:09:32 +0000 (UTC) From: "Robert Muir (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <2145310704.8632.1319465372143.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1654220022.7419.1319423912034.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3526) preflex codec returns wrong terms if you use an empty field name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134083#comment-13134083 ] Robert Muir commented on LUCENE-3526: ------------------------------------- There are more serious problems in 3.x here. * if you create new Field("", ""), you get IllegalArgumentException from Field's ctor: "name and value cannot both be empty" * But there are tons of other ways to index an empty term for the empty field (for example initially make it "garbage" then .setValue(""), or via tokenstream). * If you do this, and you have assertions enabled, you will trip the same assert bug i fixed in trunk here. * If you don't have assertions enabled, you will create a corrupt index: test: terms, freq, prox...ERROR [term : docFreq=1 != num docs seen 0 + num docs deleted 0] So we need to figure out what the semantics should be for 3.x. is Term("", "") allowed or not? > preflex codec returns wrong terms if you use an empty field name > ---------------------------------------------------------------- > > Key: LUCENE-3526 > URL: https://issues.apache.org/jira/browse/LUCENE-3526 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: 4.0 > Reporter: Robert Muir > Attachments: LUCENE-3526.patch, LUCENE-3526_test.patch, LUCENE-3526_test.patch, LUCENE-3526_test.patch, LUCENE-3526_test.patch > > > spinoff from LUCENE-3473. > I have a standalone test for this... the termsenum is returning a bogus extra empty-term (I assume it has no postings, i didnt try). > This causes the checkindex test in LUCENE-3473 to fail, because there are 4 terms instead of 3. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org