diff --git a/pages/query.md b/pages/query.md index 5f6f41f..4dbfaea 100644 --- a/pages/query.md +++ b/pages/query.md @@ -8,6 +8,24 @@ Searchcraft lets you construct powerful search queries with structured JSON. Thi --- +## basic python example + +``` python +import httpx + +payload = { + "query": { + "fuzzy": {"ctx": "hi"} + } +} + +response = httpx.post( + "http://0.0.0.0:8000/index/thoughts-links/search", + json=payload +) +print(response.json()) +``` + ## ✅ Mixing Exact and Fuzzy Queries You can combine multiple types using a `boolean` query with `must`, `should`, or `must_not` clauses.