[opencms-dev] Search settings: exclude fields in structured content / xmlcontent

Paul-Inge Flakstad flakstad at npolar.no
Tue Mar 22 14:59:34 CET 2011


Hi Mario,

Thanks a lot, I will try this. Just have to wait for a good time to stop Tomcat. :)

Cheers,
Paul
________________________________________
Fra: opencms-dev-bounces at opencms.org [opencms-dev-bounces at opencms.org] på vegne av Mario Jäger [m.jaeger at alkacon.com]
Sendt: 22. mars 2011 09:31
Til: opencms-dev at opencms.org
Emne: Re: [opencms-dev] Search settings: exclude fields in structured content / xmlcontent

Hi Paul,

Please, delete the physical index in WEB-INF/index/ before you rebuild
that index. To delete that index, you have to stop the servlet container
first. After rebulding that index then, it should work like you want to
have it.

Kind Regards,
Mario.

Am 20.03.2011 17:45, schrieb Paul-Inge Flakstad:
> Hey all,
> My xmlcontent / structured content fields are getting indexed by
> OpenCms, although I have set them explicitly to not be indexed, in the .xsd.
> For example, I have an definition file, "image.xsd", for an image
> container. I use this image container in several types of structured
> content (nested).
> In image.xsd, I have placed these search settings:
> ...
> <xsd:annotation>
> <xsd:appinfo>
> <resourcebundle name="no.npolar.common.pageelements.workplace"/>
> <searchsettings>
> <searchsetting element="Alignment" searchcontent="false" />
> <searchsetting element="Size" searchcontent="false" />
> </searchsettings>
> </xsd:appinfo>
> </xsd:annotation>
> ...
> However, when I do a search, I can still see values of "Alignment" and
> "Size" (e.g. "Right" and "Medium") in the generated text snippet.
> Within my structured content files, I often combine "actual content"
> (displayed on the finished webpage) with "settings" (not displayed on
> the finished webpage), but I don't want those setting values to appear
> in the search results.
> What do I have to do to accomplish this? (Yes, I have rebuild the index.)
> Best regards,
> Paul
>
>
>
>
> _______________________________________________
> 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/mailman/listinfo/opencms-dev


--
-------------------
Mario Jäger

Visit OpenCms Days 2011 Conference and Expo
May 9 to May 10 2011 in Cologne, Germany
http://www.opencms-days.org

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

_______________________________________________
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/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list