I have a requirement where I found the list of specific orders according to the filtered conditions. I need to create a searchCriteria which I can pass to $this->orderRepository->getList($searchCriteria). To pass searchcriteria, I need below condition:
(status = 'pending' AND custom_field = 1) OR (status = 'review' AND custom_field = 4)
I found multiple similar questions which answer about the combinations of conditions:
(attribute-A OR attribute-B) AND (attribute-C OR attribute-D)
This link will explain more what I want. If anyone can help me please let me know.