SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 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


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.