# SearchOptions (@salmonui/data-grid/engine)

> The SearchOptions interface of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/SearchOptions

```ts
import type { SearchOptions } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/search`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
interface SearchOptions {
    readonly enabled?: boolean;
    readonly fields?: readonly ColumnId[] | 'all';
    readonly operator?: SearchOperator;
    readonly ignoreCase?: boolean;
    readonly ignoreAccent?: boolean;
    readonly key?: string;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `enabled` | `readonly enabled?: boolean;` | optional | Default true. When false, `search.set` is rejected. |
| `fields` | `readonly fields?: readonly ColumnId[] \| 'all';` | optional | Searched columns. Default `'all'`: every leaf with `allowSearching` except date/datetime columns. |
| `operator` | `readonly operator?: SearchOperator;` | optional | Default `'contains'`. |
| `ignoreCase` | `readonly ignoreCase?: boolean;` | optional | Default true. |
| `ignoreAccent` | `readonly ignoreAccent?: boolean;` | optional | Default false. |
| `key` | `readonly key?: string;` | optional | Initial search text (`defaultQuery.search` wins when present). |
