# EmailSearchSnippet

The EmailSearchSnippet type of the TypeScript SDK, which search.fullText take or answer.

```ts
type EmailSearchSnippet = {
  id: string
  preview: string | null
  subject: string | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `id` | `string` | Message ULID this snippet belongs to |
| `preview` | `string` \| `null` | Highlighted HTML snippet for the message body, or null if not matched |
| `subject` | `string` \| `null` | Highlighted HTML snippet for the subject line, or null if not matched |

## Used by

| Method | What it does |
| --- | --- |
| [`search.fullText`](/docs/sdks/typescript/search/full-text) | Full-text search a mailbox |

## Used in

[`EmailSearchResult`](/docs/sdks/typescript/types/email-search-result), [`EmailSearchSnippetsResult`](/docs/sdks/typescript/types/email-search-snippets-result), [`SemanticSearchResult`](/docs/sdks/typescript/types/semantic-search-result).
