From 93a4b412b43323543343c7d7e3326365f4c5d9c8 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 15 Jul 2025 12:36:48 -0500 Subject: [PATCH] include example --- pages/query.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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.