Wednesday 15 May 2013

SP2013 Content Search webpart - Query Builder managed property issue

Problem:

 
Requirement was to give a vertical slice on two diferent types of policies from one content type.
 
We need to create three search pages.
 
Page 1 Requirement: Get all policies 
webpart query:
     {searchboxquery} ContentType:Policy-Page-Content "Policy-TypesOWSCHCS"="HR"
 
Page 2 get all policies where policy type value is HR
webpart query:
     {searchboxquery} ContentType:Policy-Page-Content "Policy-TypesOWSCHCS"="HR"
 
Page 3 get all policies where policy type value is IT
webpart query:
 
     {searchboxquery} ContentType:Policy-Page-Content "Policy-TypesOWSCHCS"="IT"
 

Solution:

 
Notice I had to encapsulate the managed property with Quotes! Why i am not sure. But out there if you have simmilar issues.