> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# search

> Search with a query vector or plain text.

## SDK - text query

Embeds the query locally (text store):

```python theme={null}
results = edge.search_text(
    "Hello world",
    top_k=5,
    threshold=0.0,
    kiosk_mode=False,
)
for r in results:
    print(r["id"], r["score"], r.get("text"))
```

## SDK - vector query

```python theme={null}
results = edge.search(
    query=[...],  # match store dimension
    top_k=5,
    threshold=0.0,
    kiosk_mode=False,
)
for r in results:
    print(r["id"], r["score"], r["label"])
```

Returns a **list** of result dicts.

## HTTP client

```python theme={null}
resp = client.search({
    "query": [...],
    "top_k": 5,
})
print(resp["results"])
```

See [API: Search](/api-references/search).
