Pass the correct params to make work search API.
Method: GET
Request URL:
http://localhost/magento2/rest/V1/search?searchCriteria[requestName]=quick_search_container&searchCriteria[filterGroups][0][filters][0][field]=search_term&searchCriteria[filterGroups][0][filters][0][value]=watch
Params:
searchCriteria[requestName] = quick_search_container
searchCriteria[filterGroups][0][filters][0][field] = search_term
searchCriteria[filterGroups][0][filters][0][value] = watch
Response:
{
"items": [
{
"id": 44,
"custom_attributes": [
{
"attribute_code": "score",
"value": "80.6521797180175800"
}
]
},
{
"id": 40,
"custom_attributes": [
{
"attribute_code": "score",
"value": "80.6521797180175800"
}
]
},
{
"id": 43,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 42,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 41,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 39,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 38,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 37,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
},
{
"id": 36,
"custom_attributes": [
{
"attribute_code": "score",
"value": "76.1715030670166000"
}
]
}
],
"aggregations": {
"buckets": [
{
"name": "category_bucket",
"values": [
{
"value": "3",
"metrics": [
"3",
"9"
]
},
{
"value": "6",
"metrics": [
"6",
"9"
]
},
{
"value": "7",
"metrics": [
"7",
"4"
]
},
{
"value": "8",
"metrics": [
"8",
"4"
]
}
]
}
],
"bucket_names": [
"category_bucket"
]
},
"search_criteria": {
"request_name": "quick_search_container",
"filter_groups": [
{
"filters": [
{
"field": "search_term",
"value": "watch",
"condition_type": "eq"
}
]
}
]
},
"total_count": 9
}