Showing results for 
Search instead for 
Did you mean: 

How to create new attribute in session in Search Restriction in Flexible Search?

0 Kudos

Optional parameter is present(catalogVersions,user) in session in Search Restriction .

(?session.brand) is null or (?session.brand) = {brand}

It throws Restrictions throws error in this case. It expects the "brand" attribute in session.

Any idea will be appreciated. Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

We had a similar issue and ended up with creating a new Filter which sets up empty value for our session attribute. And then in search restriction we include checking for empty values (AND ?session.ourCustomAttribute <> '' )