include example

This commit is contained in:
Waylon Walker 2025-07-15 12:36:48 -05:00
parent a153bf1bb4
commit 93a4b412b4

View file

@ -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.