I need to accomplish the following, and I can't find any working method for it.
We have articles with a custom metadata field of comma-separated keyword values, the code I've built split's by comma and then creates Criteria for each eg:
CustomMetaKeyCriteria metaField = new CustomMetaKeyCriteria("articleKeywords");
for(int i=0; i < keywords.length; i++){
keywordCriterias[i] = new CustomMetaValueCriteria(metaField, keywords[k], FieldOperator.LIKE);
}
I then want to search against the other article's keywords, using the LIKE operator so it'll search for each keyword within its keyword metadata.
I've been unable to combine the Criteria into a single one though, could someone talk me through how to do this? Every approach I've tried has failed.
Thanks