Search API
The Search surface is archAIc’s classic Probabilistic Indexing front door: boolean / wildcard / fuzzy / phrase / proximity queries against KWS word hypotheses, with bounding-box hits and TF-IDF ranking. Reach for it when the caller already knows the term they want and needs per-hit pixel coordinates back. Aggregate stats (/query-stats) report per-collection / per-libro hit counts for the same query, without returning individual hits.
| Method | Path | Summary | Key params | Response |
|---|---|---|---|---|
| GET | / | Legacy C++ compat search (hierarchical, depth-dependent JSON) | — | CompatResponse |
| GET | /flat | Flat sortable results with score threshold | q (query:string) | FlatResponse |
| GET | /query | Search with structured JSON response | q (query:string) | SearchResponse |
Examples
Section titled “Examples”Flat search for a UPPERCASE term, top 50 hits
curl -H "X-API-Key: $API_KEY" \ "$ARCHAIC/flat?q=NAVARRO\$&limit=50"Aggregate stats for the same query
curl -H "X-API-Key: $API_KEY" \ "$ARCHAIC/query-stats?q=NAVARRO\$"