Skip to main content

SharePoint Search 2013: Result type Condition not fired if the Managed property has Multi type attributed selected (Product Issue)

Today I came around this Result type issue with Multi type Managed Property.

I have created one template & I wanted to show this template on particular condition. So I created the result type. The Managed property (MP) that I used, I have verified its attributes all attributes are selected and its type is Multi value. I am trying to apply the "conditions" and somehow the value not matched.

I have checked MP; it has all the values but somehow the template not called. When I removed this condition it working and when choose other MP other then Multi valued. It is working as expected.

The details implementation.  Let me explain you more with example.

  • Navigation to the schema link Under the Site Settings-> Site section click to the schema link.
  • Verify that DisplayAuthor having all the required properties selected, the most important it must be Muti value.
  • Next step would be crating the custom template. For that I need to map the drive and create the copy of one of search template. For this example I have selected item_word template.
  • Navigate to the settings menu from the page -> Design Manger.

  •  Clicked to “Upload Design Files” and click to the design manage files link. 
  •  The network location opened as mentioned in the below screen having \\address@80\sites\Search\_catalogs\masterpage\Display Templates\Search and inside the \Display Templates\Search folder
  •  The design manager file I have copied the item_world.html  and rename the copied file to SharePointForDeveloper_Item_Word.html.
  •  Edit the file and put the _#=ctx.CurrentItem.DisplayAuthor=#_ above the _#=ctx.RenderBody(ctx)=#_ and give the tile to this template SharePoint Item word. It would be easy to identify while selected the template in the drop down.

  • Save the template next step to create the result types. To navigate to the Site Settings->Site Collection Administration section-> Click to the Result type.
  • Create the new result type as mentioned below screen shot.
  • Save the result type. 
  • Navigate to search center and click to everything vertical and search for “document”. Got the result with applied with new template as created in the above steps and able to get the DispalyAuthor value in the template.
  • Now test with the multi value Managed property, for that I need to modify the result type template so same I did. As this is the multi value so the document contains with semi colon and so need to use contains keyword from the drop down. Please see the below screenshot to modified result type.
  • After applying the template, did the same navigate to the search center and use the same keyword “document” to search the results. The metadata is missing because the template not applied another issue. 


  • I come to know this is related to the multi value MP causing an issue.
  • Related to this issue I have also post the same issue on the MSDN question
PS: I have checked each option from the Query drop down like "Equals any of" and "Contains any of" not working in case of multi value attribute.

Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

What is SharePoint RPC Protocols? Part 1 This reference includes information about the methods and usage of SharePoint Foundation Remote Procedure Call (RPC) protocol. This protocol can be used in Win32-based applications or in ASPX applications to make HTTP POST requests to the server. Methods in this protocol that do not modify the contents of the database can also be used in URL protocol to make HTTP GET requests. Definition taken from http://msdn.microsoft.com/en-us/library/ms448359.aspx You will find the OWSSVR.DLL in SharePoint 2010 Server Physical Path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI and MOSS C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI OWSSVR.DLL List of commands DialogView  Display ExportList GetProjSchema GetUsageBlob HitCounter RenderView To read more about the OWSSVR.DLL command Please read the URL Protocol from Microsoft Blog having a URL http://msdn.microsoft.com/en...

SharePoint 2013 Search Database Part 1

SharePoint 2013 Search architecture drastically change, as earlier in FS4SP 2010 we have 2 search applications “FASTContentSSA” and “FASTQuerySSA” and 7 total database in use. Following are the List of DB (FS4SP) FASTContentSSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTQuerySSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTSearchAdminDatabase : Fast Search Admin Database  In SharePoint 2013 search has only 1 Search Service application and 4 database in use. No property store database need any more, now the properties are directly stored inside the index component and all the index directly indexed to the physical system where FS4SP data comes from database as well as from the File system now data directly stored and indexed/ retried from the Physical disk because of this performance increase and search experien...

STS CryptographicException Error : Key set does not exist

Common mistakes Both SharePoint Site and SSO Site NOT running on the same application pool. Application pool identity user doesn’t have permission to access the certification.  Solution to this problem Set the same identity pool to  : 2. Be sure to grant rights to the certificate for the App Pool running the web service Start -> Run -> MMC File -> Add/Remove Snapin Add the Certificates Snap In Select Computer Account, then hit next Select Local Computer (the default), then click Finish On the left panel from Console Root, navigate to Certificates (Local Computer) -> Personal -> Certificates You're certificate will most likely be here. Right click on your certificate -> All Tasks -> Manage Private Keys Set you're private key settings here. Add app pool account Reset iis