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

27 Jun
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.

 

Demo

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:

image

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!

2013-06-27T11-13-11_4

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

Maximilian Melcher (MCITP, MCPD) is a Managing Consultant for 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 mostly with a good coffee in his hands.
Tags: ,
2 replies
  1. Ha Doan says:

    Hi,
    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?

    Thanks.

    Reply

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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">