---
title: "Search an index"
method: GET
path: "/storage/search/{index}"
tags: ["Search"]
---

# Search an index

`GET /storage/search/{index}`

Performs a search on an index

## Path parameters

- `index` string, required

## Query parameters

- `field` string, required
- `search` string, required
- `search_type` 'exact' | 'fuzzy' | 'prefix' | 'range'
- `min` number
- `max` number
- `limit` integer
- `sortBy` string

## Response `200`

Search results

- IndexSearchResponse
  - `body` object
    - `results` IndexSearchItem[]
      - `id` string — Unique identifier for the result
      - `stream` string
      - `subject` string
      - `fields` object — Indexed fields and their values
      - `score` number — Relevance score of the result
      - `partition` integer
      - `sequence` integer
      - `timestamp` integer
    - `results_total` integer
  - `metadata` Metadata
    - `bucket` string — Bucket name
    - `duration` string — Operation duration
    - `field` string — Search field
    - `hits` integer — Number of hits
    - `index_duration` string — Index search duration
    - `index_hits` integer — Number of index hits
    - `index_name` string — Index name
    - `index_partitions` integer — Number of index partitions
    - `key` string — Entry key
    - `limit` integer — Query limit
    - `partitions` integer — Number of partitions
    - `search` string — Search term
    - `stream` string — Stream name
    - `subject` string — Subject pattern

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-5.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway-5/revisions/072de10ada5e/schema)
