---
title: "addSearch"
slug: "cloud-sdk-search-browser-addsearch"
abstract: "The addSearch function initializes the Cloud SDK search package on the browser side."
---
# addSearch

|     |     |
| --- | --- |
| Type | Function |
| Import path | `@sitecore-cloudsdk/search/browser` |

Used as a method by the [`CloudSDK`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-core/cloud-sdk-core-browser/functions/cloud-sdk-core-browser-cloudsdk.html "CloudSDK") function to initialize the `search` package.

## Signature

```typescript
export function addSearch(): CloudSDKBrowserInitializer
```

## Return value

Initializes the `search` package and returns an instance of `CloudSDKBrowserInitializer`.

## Examples

See code examples in [`CloudSDK`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-core/cloud-sdk-core-browser/functions/cloud-sdk-core-browser-cloudsdk.html "CloudSDK").