Skip to main content

SharePoint 2013: Remove from the search result "You have seen this before" Recommendation Part 3

I am continuing with my third part with the same “You have seen this before” series. I must recommended please have a look on my post 1 and post 2.

Better Solution: How rewrite the “You have seen this before results” URL with your own custom property?
This solution is not full proof solution, it has two parts, one part is almost done next part I am working on it.
  1. Modify the Search results (Recommend you to take the backup of template and set the same to for search box control correct “Control_SearchBox.html”)
  2. Modify the Search box template (Recommend you to take the backup of your template and apply this solution in your box “Control_SearchResults.html”).
As we are already know that the default template not having all the properties available

Follow the step to implement the rewrite the URL template.
  1. Fist take the copy template depending upon the result type that you going to rewrite example (if you are your result appear in the list item to take the copy of item_default.html , if word the take the copy of item_word.html)
  2. Once you take the copy of the template give it a unique file name also set its title by edit the template html and its title. The same value available in the result type in the Drop Down as well.
  3. So edit the template in step 2, provide your custom properties in at the title between the tags “<mso:ManagedPropertyMapping>” once it done. I have included the "CustomURL" and same property, I used in the step 8.
  4. Save the template and create new result type and provide select the template created in step 2. 
  5. You may get the sync properties message click update to sync the properties. Once you done.
  6. Next step you need to work on the control_searchresult.html file 
  7. Edit the file and “Post1” I have mentioned the “personalFavoriteResults” responsible for render the “You have seen this before” results. 
  8. I have written custom code that will get the same result from “RelevantResults” result table and match for the URL with “personalFavoriteResults” URL, once it matched its update the URL value from custom property.
Download the template: control_searchresult.html

By downloading the applied the above template I am able to fix the URL issue but the issue still pending in case of "Search box" query suggestion the URL still there. I am working on it and update on this post once i will get the solution. 

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