Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 80013 invoked from network); 25 Jun 2006 23:13:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jun 2006 23:13:21 -0000 Received: (qmail 27353 invoked by uid 500); 25 Jun 2006 23:13:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 26866 invoked by uid 500); 25 Jun 2006 23:13:05 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 26505 invoked by uid 99); 25 Jun 2006 23:13:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 16:13: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; Sun, 25 Jun 2006 16:13:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9843571421B for ; Sun, 25 Jun 2006 23:11:31 +0000 (GMT) Message-ID: <930437.1151277091620.JavaMail.jira@brutus> Date: Sun, 25 Jun 2006 23:11:31 +0000 (GMT+00:00) From: "Kaj Kandler (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Created: (COCOON-1870) Lucene block does not store attributes when instructed so 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 Lucene block does not store attributes when instructed so --------------------------------------------------------- Key: COCOON-1870 URL: http://issues.apache.org/jira/browse/COCOON-1870 Project: Cocoon Type: Bug Components: Blocks: Lucene Versions: 2.1.9 Reporter: Kaj Kandler I tried to use the sample code and wanted to store some of my attributes as described in http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html However, the notation of "element@attribute" did not work with the LuceneIndexContentHandler. I believe I fixed it with the following code lines 122 ff. String atts_lname = atts.getLocalName(i); String atts_value = atts.getValue(i); if (isFieldTag(lname + "@" + atts_lname)) { bodyDocument.add(Field.UnIndexed(lname + "@" + atts_lname, atts_value)); } bodyDocument.add(Field.UnStored(lname + "@" + atts_lname, atts_value)); The if-statement was missing. Now my question, does this fix make sense? Can someone with experience validate this? Also, do you want me to create and issue and supply this towards it? Kind regards, Kaj -- 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