---
title: "SearchSettings"
canonical_url: "https://www.nutrient.io/api/csharp/settings/format/search-settings/"
md_url: "https://www.nutrient.io/api/csharp/settings/format/search-settings.md"
last_updated: "2026-10-08T08:55:57.713Z"
description: "Settings for Search. Values fall back through three levels: document → SDK → built-in default."
---

Settings for Search. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

```csharp

using Nutrient;

```

The SDK creates this class through factory methods or other SDK objects.

## Properties

### Algorithm

```csharp

public string Algorithm { get; set; }

```

Gets or sets the value of Algorithm. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string`

### ContextLines

```csharp

public int ContextLines { get; set; }

```

Gets or sets the value of ContextLines. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int`

### Display

```csharp

public SearchDisplay Display { get; set; }

```

Gets or sets the value of Display. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** [`SearchDisplay`](/api/csharp/enums/search-display/)

### EmitIndexPath

```csharp

public string EmitIndexPath { get; set; }

```

Gets or sets the value of EmitIndexPath. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string`

### Mode

```csharp

public SearchMode Mode { get; set; }

```

Gets or sets the value of Mode. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** [`SearchMode`](/api/csharp/enums/search-mode/)

### StemmingLanguage

```csharp

public string StemmingLanguage { get; set; }

```

Gets or sets the value of StemmingLanguage. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string`

### TopK

```csharp

public int TopK { get; set; }

```

Gets or sets the value of TopK. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int`

## Resource management

```csharp

public void Dispose()

```

`SearchSettings` implements `IDisposable`. Call `Dispose()` or use a C# `using` declaration to release its native handle right away. If you don't, the handle is released when the object is garbage collected.

---

## Related pages

- [Format](/api/csharp/settings/format.md)
- [Accessibility Settings](/api/csharp/settings/format/accessibility-settings.md)
- [Cad Settings](/api/csharp/settings/format/cad-settings.md)
- [Email Settings](/api/csharp/settings/format/email-settings.md)
- [Html Settings](/api/csharp/settings/format/html-settings.md)
- [Image Settings](/api/csharp/settings/format/image-settings.md)
- [Jpeg Settings](/api/csharp/settings/format/jpeg-settings.md)
- [Markdown Settings](/api/csharp/settings/format/markdown-settings.md)
- [Pdf Settings](/api/csharp/settings/format/pdf-settings.md)
- [Presentation Settings](/api/csharp/settings/format/presentation-settings.md)
- [Spreadsheet Settings](/api/csharp/settings/format/spreadsheet-settings.md)
- [Text Settings](/api/csharp/settings/format/text-settings.md)
- [Word Settings](/api/csharp/settings/format/word-settings.md)

