# $productPage->search()

> Search all pages within the current page

- Source: `src/Cms/Page.php#L1102` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Page.php#L1102>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$productPage->search(null|string $query = null, array|string $params = []): Kirby\Cms\Pages
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$query` | `null\|string` | `null` |
| `$params` | `array\|string` | `[]` |

## Return type

`Kirby\Cms\Pages`

## Parent class

`Wagnerwagner\Merx\ProductPage` inherited from `Kirby\Cms\Page`
