Searches
Entry Point: /searches/{scope}
The searches resource family performs search actions using the Elastic Path Search server. Cortex API sends the search keywords entered by the shopper to the search server for processing and the server returns the results to Cortex API.
Elastic Path provides the following options:
- Offer search : Retrieves offers and the available facets
- Keyword search: Retrieves the results that match the keywords
Search workflow:
GET
the search form- Populate the form with the search keywords
POST
the search form to create the search- Follow the link returned by Cortex API to retrieve the search results
Search results for the keywords are paginated and ordered according to the relevance to the keywords.
Read Searches
Retrieve list of available search forms.
Workflow
- Start with root
GET
the link with rel: searches- Render the response
Keyword Search
Retrieve all items matching the keywords in the search criteria, submitted using the form.
Workflow
- Start with searches
GET
the link with rel: keywordsearchform- Fill out the form
POST
the form using the link with rel: itemkeywordsearchaction