The Recommendations and Pathways V2 APIs support complex boolean queries using Advanced Filters.
Similar to the efq filter for Search and Category, the complex boolean filters can be applied to Recommendations result sets to include/exclude the products using the Product Attributes in the customer feed that is valid and fits the parameter values.
Recommendations and Pathways APIs also support filtering on SKU attributes. Read more about this feature in the SKU Select API page.
- OR: Includes items that belong to a specified set.
- AND: Include items that belong to all specified sets.
- NOT: Excludes items that belong to the specified sets.
#Returns all cotton products and all linen products &filter=fabric:(“cotton” OR “linen”)
#Returns all products that are both cotton and linen &filter=fabric:(“cotton” AND “linen”)
#Returns all cotton items that are not linen &filter=fabric:”cotton” &filter=-fabric:”linen”