Skip to content

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.

MethodPathSummaryKey paramsResponse
GET/Legacy C++ compat search (hierarchical, depth-dependent JSON)CompatResponse
GET/flatFlat sortable results with score thresholdq (query:string)FlatResponse
GET/querySearch with structured JSON responseq (query:string)SearchResponse

Flat search for a UPPERCASE term, top 50 hits

Terminal window
curl -H "X-API-Key: $API_KEY" \
"$ARCHAIC/flat?q=NAVARRO\$&limit=50"

Aggregate stats for the same query

Terminal window
curl -H "X-API-Key: $API_KEY" \
"$ARCHAIC/query-stats?q=NAVARRO\$"