The *Search* portlet allows users to do a search with any string. In Content, there are three types of search: quick search, advanced search and search with saved queries.

The users can find this porlet in the front page. This is an example of the *Search* portlet used in Content:

!images/search-portlet.png|align="center" width="150mm" fo:scalefit="1" html:scalefit="0"!

* *Packaging*: This portlet is packaged in the _searches.war_ file.

* *The portlet class name*: _org.exoplatform.wcm.webui.search.UIWCMSearchPortlet_

* *Available preferences*: When using this portlet, you can customize the following preferences: {anchor:id=CONTref.Portlets.Search.AvailablePreferences}
|| *Preference* || *Type*|| *Value* || *Description* ||
| *repository* | {{string}} | {{repository}} | The place where data are stored and maintained. |
| *workspace* | {{string}} | {{collaboration}} | The workspace where the content is stored. |
| *searchFormTemplatePath* | {{string}} | _{{{/exo:ecm/views/templates/WCM Advance Search/search-form/UIDefaultSearchForm.gtmpl}}}_ | The path to the search form template. |
| *searchResultTemplatePath* | {{string}} | _{{{/exo:ecm/views/templates/WCM Advance Search/search-result/UIDefaultSearchResult.gtmpl}}}_ | The path to the search result template. |
| *searchPaginatorTemplatePath* | {{string}} | _{{{/exo:ecm/views/templates/WCM Advance Search/search-paginator/UIDefaultSearchPaginator.gtmpl}}}_ | The path to the search paginator template. |
| *searchPageLayoutTemplatePath* | {{string}} | _{{{/exo:ecm/views/templates/WCM Advance Search/search-page-layout/UISearchPageLayoutDefault.gtmpl}}}_ | The path to the search page template. |
| *itemsPerPage* | {{Integer}} | 5 | The number of items for each page. |
| *showQuickEditButton* | {{boolean}} | {{true}} | Show or hide the quick edit icon.|
| *basePath* | {{string}} | {{parameterizedviewer}} | The page which is used to display the search result. |

* *Sample configuration* {anchor:id=CONTref.Portlets.Search.SampleConfiguration}

{code:xml}
<portlet-preferences>
  <preference>
    <name>repository</name>
    <value>repository</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>workspace</name>
    <value>collaboration</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>searchFormTemplatePath</name>
    <value>/exo:ecm/views/templates/WCM Advance Search/search-form/UIDefaultSearchForm.gtmpl</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>searchResultTemplatePath</name>
    <value>/exo:ecm/views/templates/WCM Advance Search/search-result/UIDefaultSearchResult.gtmpl</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>searchPaginatorTemplatePath</name>
    <value>/exo:ecm/views/templates/WCM Advance Search/search-paginator/UIDefaultSearchPaginator.gtmpl</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>searchPageLayoutTemplatePath</name>
    <value>/exo:ecm/views/templates/WCM Advance Search/search-page-layout/UISearchPageLayoutDefault.gtmpl</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>itemsPerPage</name>
    <value>5</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>showQuickEditButton</name>
    <value>true</value>
    <read-only>false</read-only>
  </preference>
  <preference>
    <name>basePath</name>
    <value>parameterizedviewer</value>
    <read-only>false</read-only>
  </preference>
</portlet-preferences>
{code}
