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

Mario Jäger m.jaeger at alkacon.com
Tue Mar 22 09:31:38 CET 2011


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



More information about the opencms-dev mailing list