Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In a Sharepoint 2013 template, I'd like to get all contacts in a contact list filtered by their selected categories using Content Search. I do know how to get contacts based on a single value, but how about multiple values?

This works (ContactResponsibleProductCategoriesis a manage metadata field):

path:"url/lists/Contacts" ContactResponsibleProductCategories:{Page.OneProductCategory}

But how about several products?

path:"url/lists/Contacts" ContactResponsibleProductCategories:{Page.ManyProductCategories}

( {Page.ManyProductCategories} is a manage metadata field that contains products in the following format "Product A; Product C; Product X"?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Finally, I find a solution (seems to work only with managed metadata fields, not standard multiselect fields). Just add brackets around the whole expression and a single pipe | in the beginning like this:

path:"url/lists/Contacts" {|ContactResponsibleProductCategories:{Page.ManyProductCategories}}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.