cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaj Kandler (JIRA)" <>
Subject [jira] Created: (COCOON-1870) Lucene block does not store attributes when instructed so
Date Sun, 25 Jun 2006 23:11:31 GMT
Lucene block does not store attributes when instructed so

         Key: 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

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,
     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,

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message