<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=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><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:12.0pt;
        font-family:"Times New Roman","serif";}
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:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:DE;}
.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 2.0cm 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=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Yves,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>did you check your index with Luke (</span><a href="http://www.getopt.org/luke/"><span lang=EN-US>http://www.getopt.org/luke/</span></a><span lang=EN-US>)</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Are you sure, that you are searching in the correct index (Offline vs. Online)?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>A workaround solution might be to index the complete content type and exclude all fields you don’t want.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This can be achieved by adding searchsettings in your schema.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>e.g.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><searchsettings><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>                <searchsetting element="FieldOne" searchcontent="false" /><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>                <searchsetting element="FieldTwo" searchcontent="false" />               <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'></searchsettings><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>HTH<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kai<o:p></o:p></span></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>Im Auftrag von </b>Yves Glodt<br><b>Gesendet:</b> Mittwoch, 22. Februar 2012 23:36<br><b>An:</b> The OpenCms mailing list<br><b>Betreff:</b> Re: [opencms-dev] Trouble setting up field config in structuredcontent search<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>I need to add: Since the content-type of the field is OpenCmsHtml, it appears like this in the structured content...<br><br><Text name="Text0"><br>      <links/><br>      <content><![CDATA[<p>...</p>]]></content><br></Text><br><br>I tried many combinations of Text/Text0/Text[1] and mappings (item and content) but without any result... :)<br><br><o:p></o:p></p><div><p class=MsoNormal>On 22 February 2012 23:18, Yves Glodt <<a href="mailto:yg@mind.lu">yg@mind.lu</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hello,<br><br>I tried both suggestions, but still can not find anything in the index (even using the search-form in the workplace)<br><br>This is the resulting config in opencms-search.xml<br><br><br><indexsource><br>                <name>Kierchtuermspromenaden</name><br>                <indexer class="org.opencms.search.CmsVfsIndexer"/><br>                <resources><br>                    <resource>/sites/Kierchtuermspromenaden/page/</resource><br>                </resources><br>                <documenttypes-indexed><br>                    <name>xmlcontent</name><br>                    <name>xmlpage</name><br>                    <name>generic</name><br>                </documenttypes-indexed><br></indexsource><br><br><br><br><fieldconfiguration><br>              <name>Kierchtuermspromenaden</name><br>                <fields><br>                    <field name="Text" display="Text" store="true" index="true"><o:p></o:p></p><div><p class=MsoNormal><br>                        <mapping type="item">Text[1]</mapping><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>                    </field><br>                </fields><br></fieldconfiguration><br><br><br>Any other idea? :-)<br><br><o:p></o:p></p><div><div><div><p class=MsoNormal>On 21 February <a href="tel:2012%2009" target="_blank">2012 09</a>:45, Schliemann, Kai <<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>> wrote:<o:p></o:p></p></div></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Yves,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>you might have a look at this page: </span><a href="http://www.opencms-wiki.org/Writing_only_specific_xml-element-data_to_the_lucene_index" target="_blank"><span lang=EN-US>http://www.opencms-wiki.org/Writing_only_specific_xml-element-data_to_the_lucene_index</span></a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>HTH<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Best regards<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Kai<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>Im Auftrag von </b>Yves Glodt<br><b>Gesendet:</b> Sonntag, 19. Februar <a href="tel:2012%2016" target="_blank">2012 16</a>:00<br><b>An:</b> The OpenCms mailing list<br><b>Betreff:</b> Re: [opencms-dev] Trouble setting up field config in structuredcontent search</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Any ideas on this ? :-)<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On 5 February <a href="tel:2012%2011" target="_blank">2012 11</a>:14, Yves Glodt <<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Hello,<br><br>I have a structured content which contains a "Text" field which I want to have indexed. The field is simply set up like this:<br><br><xsd:element name="Text" type="OpenCmsHtml"/><br><br>I created a new field configuration but I fail to get it actually work.<br><br>How would the fieldconfiguration need to look like?<br><br>This is what I came up with, but as mentioned it does not work... :-)<br><br><fieldconfiguration><br>                <name>site01</name><br>                <fields><br>                    <field name="Text" store="true" index="untokenized" excerpt="true"><br>                        <mapping type="content"/><br>                        <mapping type="item">Text[1]</mapping><br>                        <mapping type="item">Text0</mapping><br>                    </field><br>                </fields><br></fieldconfiguration><br><br>Best regards,<br>Yves<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><br><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>