# SkipEntry(string, bool)

> Called when the index is built to see if a specified document needs to be indexed. See SearchIndexer.skipEntryHandler.

## Definition

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

```csharp
public virtual bool SkipEntry(string document, bool checkRoots = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path of a document.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Check Roots.

### Returns

| Type                                                          | Description                                              |
| ------------------------------------------------------------- | -------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the document doesn't need to be indexed. |
