Hi, I’m trying to figure out how to perform a filter between two fields via OR logic. Basic code looks something like this:
$pager = new KalturaFilterPager();
$pager->pageSize = 50;
$filter = new KalturaMediaEntryFilter();
$filter->mediaTypeEqual = KalturaMediaType::VIDEO;
$filter->status = KalturaEntryStatus::READY;
$filter->userIdEqual = $this->kaltura_user;
$filter->entitledUsersEditMatchOr = $this->kaltura_user;
$filter->orderBy = KalturaMediaEntryOrderBy::CREATED_AT_DESC;
return $client->media->listAction($filter, $pager);
I’m basically trying to filter by userIdEqual OR entitledUsersEditMatchOr - currently this will try do an AND search. That’s not what I want.
I ran across this: https://developer.kaltura.com/api-docs/Search--Discover-and-Personalize/how-search-kaltura-works-how-perform-and-or-not-and-exact-match-searches-api.html
But based on the wording such searches only work on custom metadata and I do not believe these two fields are custom.
Is this seriously not possible? There must be a way. Any help would be appreciated.