include example
This commit is contained in:
parent
a153bf1bb4
commit
93a4b412b4
1 changed files with 18 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue