Menu
Post Multi Search
Multi-search
POST
/pcm/catalog/multi-searchUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Post Multi Search action (under Catalog Search).
- Fill in the fields below, then reference the result from later steps as
{{postMultiSearch.response.data}}.
Request
Query parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"searches": [
{
"type": "search",
"highlight_full_fields": "name,description",
"q": "search query",
"facet_by": "meta.search.nodes.name",
"filter_by": "meta.search.nodes.name:=Electronics && price.float_price:>=10.00",
"sort_by": "price.amount:asc,extensions.products(Specification).rating:desc",
"max_facet_values": 10,
"page": 1,
"per_page": 20
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{postMultiSearch.response.data.<field>}}.
{
"results": [
{
"type": "search",
"facet_counts": [
{
"counts": [
{
"count": null,
"highlighted": null,
"value": null
}
],
"field_name": "category",
"sampled": false,
"stats": {}
}
],
"found": 150,
"hits": [
{
"document": null,
"highlight": {},
"highlights": [
{}
],
"text_match_info": null
}
],
"out_of": 150,
"page": 1,
"request_params": {},
"search_cutoff": false,
"search_time_ms": 25
}
],
"included": {}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?