---
title: Search Engine
description: Search Engine protocol schemas
---

{/* ⚠️  AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs go in content/docs/guides/. */}

<Callout type="info">
**Source:** `packages/spec/src/data/search-engine.zod.ts`
</Callout>

## TypeScript Usage

```typescript
import { SearchConfig } from '@objectstack/spec/data';
import type { SearchConfig } from '@objectstack/spec/data';

// Validate data
const result = SearchConfig.parse(data);
```

---

## SearchConfig

### Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **fields** | `string[]` | ✅ | Fields to index for full-text search weighting |
| **displayFields** | `string[]` | optional | Fields to display in search result cards |
| **filters** | `string[]` | optional | Default filters for search results |


---

