[opencms-dev] Trouble setting up field config in structured content search

Daniel daoquan at gmail.com
Tue Feb 21 04:45:12 CET 2012


Set the value of "index" to "true" instead of "untokenized".
在 2012-2-19 下午11:00,"Yves Glodt" <yg at mind.lu>写道:

> 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
>>
>>
>>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120221/3d1f477f/attachment.htm>


More information about the opencms-dev mailing list