TechEd 2013: Step by Step: Search Development in Microsoft SharePoint 2013

27 Jun 2013
June 27, 2013

Another search session – good times!

Session by Jan Inge Bergseth (MSFT, Search Center of Excellence)

Content Enrichment

Content Enrichment is a great feature to enrich your data during crawl – actually it’s the only way to enrich at all. When the crawler index an item and if the metadata of the current item matches some criteria, the metadata are sent to a customizable web service. Important: Metadata aliases do not work! Additionally you cannot change the body field and the security descriptors – wow, the last one is bad. But you can reject documents during crawl, crawl blacklists come to my mind. This is also great for calculations based on the provided metadata (days since published > 10, as example).

Content Ingestion

Several options to integrate data from external systems:

  • No code
    • OData
    • SQL
  • Code
    • .NET Assembly
    • WCF

Important: If you develop a custom connector you should implement the methods for incremental crawling otherwise there will be slow full crawls only.


Display Templates

Important: If you don’t use the enterprise search center you do not get the html files to edit them – only the unreadable js files. Wow, tough one.



Jan showed one demo from the content enrichment, BDC to the final display templates – easy to follow, nothing to complex. The result looked like this:


I assume, the audience get the idea how powerful that new design is – or as Jan said:

The Sky is the limit

Loading scripts

There are several ways to load external javascript files:

  • <script> tag
  • SP.SOD
  • $includeScript
  • or load them in the masterpage

Jan recommended to add big javascript files in the masterpage so that when you hit the search center, the scripts are already loaded. I think this is good for certain situations, in a big environment this is unmaintainable and can cause that you bloat up your masterpage.


Hover Templates

In a short example Jan showed how to extend the hover template with some client object model calls to get the best ranked items related to the current item – good one!


Loading related items in the hover templates. Here you can see best ranked items

Slides / Recording

You can grab the slides or watch the recording here.


My evaluation

Step by step – straight forward demo, enjoyed it! Thanks again, Jan.

Max Melcher
Follow me!

Max Melcher

Maximilian Melcher (MCSE, MCPD) is a Principal Consultant working at Alegri International Services in Munich, Germany. Max is a specialist in SharePoint technologies focused on search, social computing, web content management and collaboration. Max has led SharePoint implementations for Dax 30 companies since 2009.
Max’s free time is spent on twitter (@maxmelcher) mostly with a good coffee in his hands.
Max Melcher
Follow me!
Tags: ,
2 replies
  1. Ha Doan says:

    This is great video for beginner like me.
    It is easier for me if I have souce codes of the deomos.
    Could you please send me a link to download the source codes?



Trackbacks & Pingbacks

  1. […] session notes by MaxSharePoint 2013 Search Development by my Norwegian colleague Jan Inge Bergseth, session notes by MaxOptimizing SQL Server 2012 for SP2013 by Brian Alderman. Guess how made great session notes again? […]

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.