2.2.4.4. Exclude Include Data Type

This plugin is used in the SiteSearchService component to filter the search results before these results are presented on the search page.

The configuration is applied mainly in core/core-configuration/src/main/webapp/WEB-INF/conf/wcm-core/core-search-configuration.xml.

Sample configuration:


<component-plugins>
    <component-plugin>
        <name>ExcludeMimeTypes</name>
        <set-method>addExcludeIncludeDataTypePlugin</set-method>
        <type>org.exoplatform.services.wcm.search.ExcludeIncludeDataTypePlugin</type>
        <init-params>
            <properties-param>
                <name>search.exclude.datatypes</name>
                <description>exclude some data type when search</description>
                <property name="mimetypes" value="${wcm.search.excluded-mimetypes:text/css,text/javascript,application/x-javascript,text/ecmascript}"/>
            </properties-param>
        </init-params>
    </component-plugin>
</component-plugins>

In which:

Properties-param Description
search.exclude.datatype Excludes some data types when doing search.
Attribute Value Description
name mimetypes The name of the property param.
value ${wcm.search.excluded-mimetypes:text/css,text/javascript,application/x-javascript,text/ecmascript} The list of mimetypes which will be excluded from the search results.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus