filterparameter when invoking the recommendation API methods.
filteris an expression that allows you to filter the recommend items based on the values of their attributes. The attributes on which you can filter are the fields in your catalog. A filter expression defines the condition to be met for the items to be returned and it's a combination of one or more predicates tied together by logical operators (AND, OR, and NOT). A predicate is an expression that returns TRUE or FALSE.
p: [attribute] [comparison operator] [value]
Price > 15
Category = 'Clothing'
InStock = 'Yes'
Price > 15(p1)
Price > 15 AND Category = 'Clothing'(p1
Price > 15 AND Category = 'Clothing' AND InStock = 'Yes'(p1
(Price > 15 OR Category = 'Clothing) AND InStock = 'Yes'((p1
(InStock='Yes' AND Category='Clothing' AND SpecialOffer='Yes')
(Price >= 15.00)
field [ NOT ] LIKE pattern
fieldis any valid text field in the catalog.
patternis the specific string of characters to search for in
field, and can include the following wildcard characters.