---
title: "Search for documents"
method: GET
path: "/search/{tenant}"
tags: ["search"]
---

# Search for documents

`GET /search/{tenant}`

Runs a search request for a certain tenant. The tenant should exist at the service and linked to a certain index in the backend. Different tenants may use the same index.

## Path parameters

- `tenant` string, required

## Query parameters

- `searchQuery` string, required

## Other responses

- `200` — unresolved $ref
- `403` — tenant can't be accessed or does not exist
- `404` — unresolved $ref

## Changes

- **2020-01-23** `290add1113ff` — 1 info
  - api tag `search` added
- **2020-01-22** `d5c7cf37e213` — 1 warning, 1 info
  - deleted the `query` request parameter `searchParams`
  - api operation id `find` removed and replaced with `search`
- **2020-01-03** `5e91e5c71711` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/changes/search/:tenant/get.md)

---

[API](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api.md) · [All operations](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commerceexperts/open-commerce-search-stack-api/revisions/290add1113ff/schema)
