Using Search
This tutorial will show how to search for SKUs, starting from a simple search request and expanding it to include more and more functionality.
The most basic search just requires a segment and a scope.
This will return the number of results defined by the browse scope. It is possible to override this on request.
In order to do pagination, simply provide an offset.
This is effective when browsing, but when searching, a phrase should be provided.
A user often wants to sort the results. To do that, there are different sorting options.
Note
The search request takes a list of sorting keys, so it is possible to tiebreak by score, even when sorting by price.
Of course, it is also possible to add filters to the search request.
It is also possible to filter by range, such as price.
Conversational Filtering
As an alternative to manually applying filters, Conversational Filtering can guide users through filters step by step using natural-language questions. When enabled on a Browse scope, the search response includes a question with selectable answer chips that the frontend can use to apply the corresponding filters on the next request.