Skip to content
AACSearch

Search an installation source with facets

Uses only the connector and collection explicitly bound to this installation source. The installation key never grants tenant-wide API access.

Full-key operation

Requires a full key; a search key or a browser key gets a 403. See Keys and credits.
POST
/cms/runtime/stores/{storeId}/sources/{sourceId}/search

Uses only the connector and collection explicitly bound to this installation source. The installation key never grants tenant-wide API access.

Path Parameters

storeId*string
sourceId*string

Header Parameters

X-AACSEARCH-INSTALLATION-KEY*string

Dedicated installation credential, issued once in Console.

Match^aac_install_[a-f0-9]{64}$
X-AACSEARCH-INSTALLATION-ORIGIN*string

HTTPS origin pinned to this installation; clones require another installation.

Formaturi

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Standard search parameters. Collection and preset are bound by Console, never selected by the module.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/cms/runtime/stores/string/sources/string/search" \  -H "X-AACSEARCH-INSTALLATION-KEY: string" \  -H "X-AACSEARCH-INSTALLATION-ORIGIN: http://example.com" \  -H "Content-Type: application/json" \  -d '{}'
{  "_trace": {},  "facet_counts": [    {      "counts": [        {          "count": 0,          "highlighted": "string",          "value": "string",          "parent": {}        }      ],      "field_name": "string",      "sampled": true,      "stats": {        "max": 0.1,        "min": 0.1,        "sum": 0.1,        "total_values": 0,        "avg": 0.1      }    }  ],  "found": 0,  "found_docs": 0,  "search_time_ms": 0,  "out_of": 0,  "search_cutoff": true,  "page": 0,  "grouped_hits": [    {      "found": 0,      "group_key": [        null      ],      "hits": [        {          "highlights": [            {              "field": "company_name",              "snippet": "<mark>Stark</mark> Industries"            }          ],          "document": {            "id": "124",            "company_name": "Stark Industries",            "num_employees": 5215,            "country": "USA"          },          "text_match": 1234556        }      ]    }  ],  "hits": [    {      "highlights": [        {          "field": "company_name",          "snippet": "<mark>Stark</mark> Industries"        }      ],      "document": {        "id": "124",        "company_name": "Stark Industries",        "num_employees": 5215,        "country": "USA"      },      "text_match": 1234556    }  ],  "request_params": {    "collection_name": "string",    "first_q": "string",    "q": "string",    "per_page": 0,    "voice_query": {      "transcribed_query": "string"    }  },  "conversation": {    "answer": "string",    "conversation_history": [      {}    ],    "conversation_id": "string",    "query": "string"  },  "union_request_params": [    {      "collection_name": "string",      "first_q": "string",      "q": "string",      "per_page": 0,      "voice_query": {        "transcribed_query": "string"      }    }  ],  "metadata": {},  "parsed_nl_query": {    "parse_time_ms": 0,    "generated_params": {},    "augmented_params": {},    "llm_response": {}  },  "query_rewrite": {    "strategy": "layout",    "original_q": "string",    "q": "string"  },  "rerank": {    "applied": true,    "model": "bge-reranker-base",    "scored": 0,    "ms": 0,    "skipped": "string"  },  "redirect": {    "url": "string",    "query": "string"  },  "suggestions": [    {      "query": "string",      "source": "manual",      "filter_by": "string",      "facet": {        "field": "string",        "value": "string",        "count": 0      }    }  ],  "query_understanding": {    "intent": "navigational",    "relation": "SUBSTITUTE",    "strategy": "string",    "policy": "string",    "search_text": "string",    "protected_tokens": [      "string"    ],    "entities": [      {        "entity_id": "string",        "type": "brand",        "canonical": "string",        "alias": "string",        "confidence": 0      }    ],    "constraints": [      {        "kind": "string",        "op": "eq",        "value": null,        "unit": "string",        "currency": "string",        "hardness": "hard",        "text": "string",        "filter_by": "string"      }    ],    "confidence": 0  },  "correction": {    "state": "NO_CORRECTION",    "applied": {      "q": "string",      "type": "RAW",      "score": 0,      "found": 0    },    "suggestions": [      {        "q": "string",        "type": "RAW",        "score": 0,        "found": 0      }    ],    "reason": "string"  },  "refinements": [    {      "id": "string",      "type": "facet",      "label": "string",      "query": "string",      "filter_by": "string",      "field": "string",      "value": "string",      "count": 0,      "score": 0,      "dimension": "string"    }  ]}