# SearchMonitor

> The search monitor is responsible to track any changes that occurs in Unity in order to update search indexes or other search data structure at runtime.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static class SearchMonitor
```

## Static Properties

| Property                                                                               | Description                                                                |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [pending](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/pending.md) | Indicates if the changes still need to be processed by the search backend. |

## Static Methods

| Method                                                                                                             | Description                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetDiff](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/getdiff.md)                             | Returns the assets that changed since a point in time.                                                                                                                                                                      |
| [GetView](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/getview.md)                             | Returns a [SearchMonitorView](/engine/6000.6/script-reference/unityeditor/search/searchmonitorview.md) to access Search's main [PropertyDatabases](/engine/6000.6/script-reference/unityeditor/search/propertydatabase.md). |
| [RaiseContentRefreshed](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/raisecontentrefreshed.md) | Mark content to be refreshed.                                                                                                                                                                                               |
| [Reset](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/reset.md)                                 | Reset the search property database content, invalidating all caches.                                                                                                                                                        |

## Static Events

| Member                                                                                                           | Description                                                                                   |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [contentRefreshed](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/contentrefreshed.md)         | Event invoked when some content has changed.                                                  |
| [documentsInvalidated](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/documentsinvalidated.md) | Event raised when documents get invalidated.                                                  |
| [objectChanged](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/objectchanged.md)               | Event raised when an [Object](/engine/6000.6/script-reference/unityengine/object.md) changed. |
| [sceneChanged](/engine/6000.6/script-reference/unityeditor/search/searchmonitor/scenechanged.md)                 | Event raised when the current loaded scene changes that might affect search results.          |
