# Merge(string[], SearchIndexer, int, Action<int, SearchIndexer, int>)

> Merge a search index content into the current index.

## Definition

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

```csharp
public void Merge(string[] removeDocuments, SearchIndexer other, int baseScore = 0, Action<int, SearchIndexer, int> documentIndexing = null)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Documents to be removed as part of the merge operation. Can be null or empty.**** (\[SearchIndexer]\(/engine/6000.7/script-reference/unityeditor/search/searchindexer)): The other index to be merged into the current one.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Base score to give to all the merged indexes.**** (\[Action\<int, SearchIndexer, int>]\(https\://learn.microsoft.com/dotnet/api/system.action)): Utility callback used to inject last minutes indexes before merging the indexes of a document.

### Remarks

This is especially useful to do incremental updates of an index.
