---
title: SearchOptions
updated_at: '2026-09-25T10:30:03+02:00'
created_at: '2026-09-25T10:30:03+02:00'
symbol:
  kind: type
  name: SearchOptions
  signatures:
    - 'type SearchOptions = Pick<Options, "fields" | "storeFields" | "idField">'
  members:
    - name: fields
      kind: property
      signature: 'fields: string[]'
      description: Names of the document fields to be indexed.
    - name: storeFields
      kind: property
      signature: 'storeFields?: string[]'
      description: >-
        Names of fields to store, so that search results would include them. By
        default none, so results would only contain the id field.
    - name: idField
      kind: property
      signature: 'idField?: string'
      description: 'Name of the ID field, uniquely identifying a document.'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/search.ts#L26
description: ''
---

# SearchOptions
