[opencms-dev] Trouble setting up field config in structuredcontent search
Schliemann, Kai
K.Schliemann at comundus.com
Tue Feb 21 09:45:55 CET 2012
Hi Yves,
you might have a look at this page: http://www.opencms-wiki.org/Writing_only_specific_xml-element-data_to_the_lucene_index <http://www.opencms-wiki.org/Writing_only_specific_xml-element-data_to_the_lucene_index>
HTH
Best regards
Kai
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Yves Glodt
Gesendet: Sonntag, 19. Februar 2012 16:00
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Trouble setting up field config in structuredcontent search
Any ideas on this ? :-)
On 5 February 2012 11:14, Yves Glodt <yg at mind.lu> wrote:
Hello,
I have a structured content which contains a "Text" field which I want to have indexed. The field is simply set up like this:
<xsd:element name="Text" type="OpenCmsHtml"/>
I created a new field configuration but I fail to get it actually work.
How would the fieldconfiguration need to look like?
This is what I came up with, but as mentioned it does not work... :-)
<fieldconfiguration>
<name>site01</name>
<fields>
<field name="Text" store="true" index="untokenized" excerpt="true">
<mapping type="content"/>
<mapping type="item">Text[1]</mapping>
<mapping type="item">Text0</mapping>
</field>
</fields>
</fieldconfiguration>
Best regards,
Yves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120221/afdd8cc3/attachment.htm>
More information about the opencms-dev
mailing list