How to Use Enhanced Search Response
SummaryOCC search response is optimized for performance, returning only the most relevant SKU in the response.
We have improved this further by adding configuration options that allow a developer to specify:
- whether all SKUs should be returned: "maxChildRecords": -1
- which product-level attributes should be returned: “attributes”
- which SKU-level attributes should be returned: “childRecordAttributes”
These additional options are useful for returning all SKUs for each product and retrieving the color from each SKU to populate a product swatch, for example.
Also provides the ability to return all price properties for each SKU, and display more complex price information, so that merchants can display “from” and “to” prices for SKUs that are in stock, for example, and to be able to list all in-stock sizes beneath each product in the search results.