<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<DIV><SPAN class=390515919-02032004><FONT face=Arial size=2>Hello <BR><BR>We
found a bug in the opencms-lucene module. When reading several properties from
the OpenCms VFS, the module is using lowercase hardcoded strings and Opencms
defines constants with uppercase. This is causing the related fields to be
indexed with null values</FONT></SPAN></DIV>
<DIV><SPAN class=390515919-02032004><FONT face=Arial size=2></FONT><BR><FONT
face=Arial size=2>The bug is in this three if sentences in BodylessDocument,
method Document.<BR></FONT></DIV><FONT face=Arial size=2><FONT size=2></DIV>
<DIV></FONT><B><FONT color=#7f0055 size=2>if</B></FONT><FONT size=2>((title =
cmso.readProperty(absPath, </FONT><FONT color=#2a00ff size=2>"title"</FONT><FONT
size=2>)) != </FONT><B><FONT color=#7f0055 size=2>null</B></FONT><FONT size=2>)
{</DIV>
<DIV> doc.add(Field.Text(FIELD_TITLE, title));</DIV>
<DIV> doc.add(Field.UnStored(FIELD_BULK, title));</DIV>
<DIV>}</DIV>
<DIV></FONT><B><FONT color=#7f0055 size=2>if</B></FONT><FONT
size=2>((description = cmso.readProperty(absPath, </FONT><FONT color=#2a00ff
size=2>"description"</FONT><FONT size=2>)) != </FONT><B><FONT color=#7f0055
size=2>null</B></FONT><FONT size=2>) {</DIV>
<DIV> doc.add(Field.Text(FIELD_DESC, description));</DIV>
<DIV> doc.add(Field.UnStored(FIELD_BULK, description));</DIV>
<DIV>}</DIV>
<DIV></FONT><B><FONT color=#7f0055 size=2>if</B></FONT><FONT size=2>((keywords =
cmso.readProperty(absPath, </FONT><FONT color=#2a00ff
size=2>"keywords"</FONT><FONT size=2>)) != </FONT><B><FONT color=#7f0055
size=2>null</B></FONT><FONT size=2>) {</DIV>
<DIV> doc.add(Field.Text(FIELD_KEYWORDS, keywords));</DIV>
<DIV> doc.add(Field.UnStored(FIELD_BULK, keywords));</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV></FONT></FONT><FONT face=Arial size=2>and OpenCms in I_CmsConstants
interface, define:</FONT></DIV>
<DIV><FONT face=Arial size=2>static final String C_PROPERTY_TITLE = "Title";
//Note: "Title"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The best practice is <SPAN
class=390515919-02032004>to </SPAN>use <SPAN class=390515919-02032004>the
same </SPAN>constants, and <SPAN class=390515919-02032004>we shall
</SPAN>b<SPAN class=390515919-02032004>e</SPAN> happy. ;-)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Need change to: <FONT
size=2>I_CmsConstants.C_PROPERTY_TITLE, <FONT
size=2>I_CmsConstants.C_PROPERTY_DESCRIPTION, <FONT
size=2>I_CmsConstants.C_PROPERTY_KEYWORDS</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bye</FONT></DIV>
<DIV><FONT face=Arial size=2>Ernesto.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>colaborativa.net </FONT></DIV>
<DIV><FONT face=Arial size=2>Rosario - Argentina</FONT></DIV>
<DIV> </DIV></SPAN></BODY></HTML>