The Search portlet is packaged in the _searches.war_ file. It allows users to do a search with any string. In WCM 2.2.0, there are three types of search: quick search, advanced search and search with saved queries.

h1. Available preferences {anchor:id=CONTref.Portlets.Search.AvailablePreferences}

|| *Preference* || *Type*|| *Default value* || *Description* ||
| *repository* | {{String}} | {{repository}} | The repository is a 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. |

h1. 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}
