I have a requirement where I have to fetch items from custom meta having certain values. For example I have to fetch all the items from custom meta where key value in {'news','videos'}. What I am doing is:
CustomMetaValueCriteria metaValueCriteria = new CustomMetaValueCriteria("news", Criteria.Equal);
CustomMetaValueCriteria metaValueCriteria1 = new CustomMetaValueCriteria("videos", Criteria.Equal);
Criteria FinalCriteria = CriteriaFactory.Or(metaValueCriteria, metaValueCriteria1);
If there are multiple values, I will have to create multiple criteria in a loop. Is there any better way of doing so (for example inCriteria)
Regards, Rajendraa