Query Rules - Default Advanced Filter + Adding Filter via Query Rule based on Context query parameter

Hi all,

I’m working with a client that wants to show a certain recommendations / company updates for users that are signed in on their website. Their site uses wordpress, and was passing a query parameter under the name “context” that would look like this context={ _pu: 1 } for users that are signed in and context={ _pu: 0 } for users that aren’t logged in. I was worried about the case where the query was not provided, and was wondering if this could be handled by setting a “Saved Filter” under Additional Vertical Settings along with a “Query Rule” that would look at the query param when context={ _pu: 1 } and swap the filter used to one that contained all entities that pertain to recommendations / company updates.

My goal is to use a filter when no context param is defined OR when context={_pu: 0 } and only query a set of entities when context={ _pu: 1 }

Currently when I set a Saved Filter under my Additional Vertical Settings for Recommendations, the Query Rule I specified does not override the set filter.

Any advice on how to tackle this issue would be greatly appreciated.

Link: https://answers-embed_7investing_com.yextpages.net/recommendations.html?query=recommendations&context=%7B+%22_pu%22%3A+1+%7D (ps I this is the link that should be showing all the recommendations, and the 1 could be swapped for a 0).