# Refresh(RefreshFlags)

> Triggers a refresh of the search view and refetches all the search items from enabled search providers.

## Definition

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

```csharp
void Refresh(RefreshFlags reason = RefreshFlags.Default)
```

### Parameters

**** (\[RefreshFlags]\(/engine/6000.5/script-reference/unityeditor/search/refreshflags)): The refresh flags give some additional context and reasons why the view needs to be updated.
