The SiteSearchService component is used in the Search portlet that allows users to find all information matching with your given keyword.
It is configured in the
core/core-configuration/src/main/webapp/WEB-INF/conf/configuration.xml
file as follows:
<import>war:/conf/wcm-core/core-search-configuration.xml</import>
The component configuration maps the SiteSearchService component with its own implementation: SiteSearchServiceImpl.
<component>
<key>org.exoplatform.services.wcm.search.SiteSearchService</key>
<type>org.exoplatform.services.wcm.search.SiteSearchServiceImpl</type>
<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>
<init-params>
<value-param>
<name>isEnabledFuzzySearch</name>
<value>${wcm.search.enableFuzzySearch:true}</value>
</value-param>
<value-param>
<name>fuzzySearchIndex</name>
<value>${wcm.search.fuzzySearchIndex:}</value>
</value-param>
</init-params>
</component>
Detail:
Value-param:
Name | Type | Value | Description |
---|---|---|---|
search.exclude.datatypes |
string
|
${wcm.search.excluded-mimetypes:text/css,text/javascript,application/x-javascript,text/ecmascript}
| Allows administrators to exclude/include some data types when doing a search. See Exclude Include Data Type for more details. |
isEnabledFuzzySearch |
boolean
|
${wcm.search.enableFuzzySearch:true}
| Allows administrators to enable/disable the fuzzy search mechanism. |
fuzzySearchIndex |
N/A
|
${wcm.search.fuzzySearchIndex:}
| Allows the approximate level between the input keyword and the found key results. In case of the invalid configuration, the default value is set to 0.8. |
To have more information about the fuzzy search, please refer to Fuzzy Search.