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><br><div class="gmail_quote">On 22 February 2012 23:18, Yves Glodt <span dir="ltr"><<a href="mailto:yg@mind.lu">yg@mind.lu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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"><div class="im">
<br>
<mapping type="item">Text[1]</mapping><br></div> </field><br> </fields><br></fieldconfiguration><br><br><br>Any other idea? :-)<br>
<br><br><div class="gmail_quote"><div><div class="h5">On 21 February <a href="tel:2012%2009" value="+352201209" target="_blank">2012 09</a>:45, Schliemann, Kai <span dir="ltr"><<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div link="blue" vlink="purple" lang="DE"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Hi Yves,<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">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><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">HTH<u></u><u></u></p><p class="MsoNormal">Best regards<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Kai<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></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""> <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" value="+352201216" 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<u></u><u></u></span></p>
<div><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Any ideas on this ? :-)<u></u><u></u></p><div><p class="MsoNormal">On 5 February <a href="tel:2012%2011" value="+352201211" target="_blank">2012 11</a>:14, Yves Glodt <<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal" style="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<br><br><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div>
<br></div></div><div class="im">_______________________________________________<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>
<br></div></blockquote></div><br>
</blockquote></div><br>