# SearchResult

> Creates a new SearchResult.

## Definition

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

## SearchResult(string, int, int)

Creates a new SearchResult.

```csharp
public SearchResult(string id, int index, int score)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): ID of the document containing the result.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the document containing the result.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Relevance core of the result. A lower score indicates it is a more relevant result.

## SearchResult(int)

Creates a new SearchResult.

```csharp
public SearchResult(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the document containing the result.

## SearchResult(int, int)

Creates a new SearchResult.

```csharp
public SearchResult(int index, int score)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the document containing the result.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Relevance core of the result. A lower score indicates it is a more relevant result.
