I’m doing some custom work through the API and session relevance to track our content as it changes using custom MIME fields. However, I’m having problems filtering my session relevance queries.
This works:
((if exists (mime fields “x-content-status” of it) then (mime fields “x-content-status” of it) else (“”)), name of it) of bes fixlets whose (name of site of it contains “API”)
This also works:
((if exists (mime fields “x-content-status” of it) then (mime fields “x-content-status” of it) else (“”)), name of it) of bes fixlets whose ((name of it contains “KEN”) AND (name of site of it contains “API”))
However this does not, most likely due to the embedded if exists in the whose clause. But I do not know how else to write it.
((if exists (mime fields “x-content-status” of it) then (mime fields “x-content-status” of it) else (“”)), name of it) of bes fixlets whose (((if exists (mime fields “x-content-status” of it) then (mime fields “x-content-status” of it) else (“”)) contains “Ready”) AND (name of site of it contains “API”))
Any suggestions on how to construct my session relevance? I’m generating it dynamically, so “Ready” could be several different values or a null value, so that all results are returned.
Thank you!
-Ken