<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I am using OpenCms 8.0.3 and I am trying to define a search index to find resources in the workplace based on their filename. I have defined the following
 indexes, sources, field definitions:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><index><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <name>Dictionairies</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <rebuild>auto</rebuild><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <project>Offline</project><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <locale>all</locale><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <configuration>dictionairies_field_config</configuration><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <sources><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <source>dictionairies_source</source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            </sources><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <param name="org.opencms.search.CmsSearchIndex.checkTimeRange">false</param><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"></index><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><indexsource><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <name>dictionairies_source</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <indexer class="org.opencms.search.CmsVfsIndexer"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <resources><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <resource>/sites/lifecapsule/configuration/Dictionary/</resource><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            </resources><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <documenttypes-indexed><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <name>xmlcontent</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <name>xmlpage</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            </documenttypes-indexed><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"></indexsource><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><fieldconfiguration><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <name>dictionairies_field_config</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            <fields><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <field name="res_name" display="Name" store="true" index="untokenized" excerpt="true"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                                   <mapping type="attribute">name</mapping><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        </field><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        <field name="content" display="Content" store="true" index="true" excerpt="true"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                                   <mapping type="content"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">                        </field><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">            </fields><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"></fieldconfiguration><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Based on a look I had in the code/javadoc of the following classes, I would expect this to work.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">*) org.opencms.search.fields.CmsSearchFieldMapping.java indicates the CmsResourceAttribute enum is used to match the mapping param<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">*) org.opencms.file.I_CmsResource.CmsResourceAttribute contains a ‘name’ attribute that corresponds to the filename (without parent path)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">When I have a look at my lucene index using Luke, I see that the ‘res_name’ field has been indexed. If I execute a search in Luke, I get the expected
 results. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">But searching on it in the OpenCms workplace does not result in any hits. I do select the correct index, and check the ‘Name’ checkbox to make sure
 the name field is used in the search.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Any ideas on what I might be doing wrong?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="582" style="width:436.5pt;border-collapse:collapse">
<tbody>
<tr>
<td width="290" style="width:217.5pt;padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="582" style="width:436.5pt">
<tbody>
<tr style="height:25.5pt">
<td width="468" style="width:351.0pt;background:white;padding:0cm 0cm 0cm 0cm;height:25.5pt">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#F24713;mso-fareast-language:NL-BE">Luc Feys</span></b><b><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#F24713;mso-fareast-language:NL-BE"><o:p></o:p></span></b></p>
</td>
<td width="114" style="width:85.5pt;background:white;padding:0cm 0cm 0cm 0cm;height:25.5pt">
<p class="MsoNormal"><a href="http://www.reference.be/"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue;mso-fareast-language:NL-BE;text-decoration:none"><img border="0" width="114" height="32" id="_x0000_i1026" src="cid:image001.gif@01CD2E2A.B0A993E0" alt="Description: REFlogo"></span></a><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="582" colspan="2" style="width:436.5pt;padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#203232;mso-fareast-language:NL-BE">Team Leader Java</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#203232;mso-fareast-language:NL-BE"><o:p></o:p></span></p>
</div>
</td>
</tr>
<tr>
<td width="582" colspan="2" style="width:436.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="582" style="width:436.5pt;border-collapse:collapse">
<tbody>
<tr>
<td width="291" valign="top" style="width:218.25pt;border:dotted #CCCCCC 1.0pt;padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:11.25pt">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">The Reference NV<br>
Stapelplein 70 bus 201<br>
9000 Gent, Belgium<br>
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE"><a href="http://www.reference.be"><span lang="EN-US" style="color:#7D8383;text-decoration:none">www.reference.be</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">  <br>
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE"><a href="http://www.facebook.com/agencyTheReference"><span lang="EN-US" style="color:#7D8383;text-decoration:none">www.facebook.com/agencyTheReference</span></a></span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">
<span lang="EN-US"><o:p></o:p></span></span></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
<td width="291" valign="top" style="width:218.25pt;border:dotted #CCCCCC 1.0pt;border-left:none;padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:11.25pt">
<tbody>
<tr style="height:9.0pt">
<td style="padding:0cm 0cm 0cm 0cm;height:9.0pt">
<p class="MsoNormal" style="mso-line-height-alt:9.0pt"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
<tr style="height:9.0pt">
<td style="padding:0cm 0cm 0cm 0cm;height:9.0pt">
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="60" style="width:45.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">Phone:
<o:p></o:p></span></p>
</td>
<td width="207" style="width:155.25pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">+32 9 269 12 84<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="60" style="width:45.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">Fax:<o:p></o:p></span></p>
</td>
<td width="207" style="width:155.25pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">+32 9 234 05 37<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="60" style="width:45.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">Mobile:<o:p></o:p></span></p>
</td>
<td width="207" style="width:155.25pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">+32 495 90 54 33<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="60" style="width:45.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE">Twitter:<o:p></o:p></span></p>
</td>
<td width="207" style="width:155.25pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#7D8383;mso-fareast-language:NL-BE"><a href="http://www.twitter.com/TheReference" title=""><span style="color:#7D8383;text-decoration:none">@TheReference</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr style="height:9.0pt">
<td style="padding:0cm 0cm 0cm 0cm;height:9.0pt">
<p class="MsoNormal" style="mso-line-height-alt:9.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:NL-BE"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><a href="http://www.reference.be/nl/over-ons/evenementen/professionele-strategieen-link-building/"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:NL-BE;text-decoration:none"><img border="0" width="32" height="32" id="_x0000_i1025" src="cid:image003.jpg@01CD2E33.5C49E990" alt="Description: http://customers.reference.be/reference/mailImages/training_20120524.jpg"></span></a><o:p></o:p></p>
</div>
</body>
</html>