iw411 migrating content by search from 2010 into 2013 - minified

76
Migrating Content by Search from 2010 into 2013 IW411 Paul Hunt

Upload: paul-hunt

Post on 15-Jan-2015

209 views

Category:

Technology


0 download

DESCRIPTION

IW411 This is my slide deck from the SharePoint Evolutions 2013 Conference where I looked at content by search in 2010, then migrating and building from scratch in 2013.

TRANSCRIPT

Page 1: Iw411   migrating content by search from 2010 into 2013 - minified

Migrating Content by Search from 2010 into 2013

IW411

Paul Hunt

Page 2: Iw411   migrating content by search from 2010 into 2013 - minified

Paul Hunt, MCITP, MCPD Trinity Expert Systems Ltd www.tesl.com [email protected] Twitter:@cimares www.myfatblog.co.uk I do woodturning for a hobby!

Page 3: Iw411   migrating content by search from 2010 into 2013 - minified

Session Agenda

Cross-Site Collection roll-ups in SP2010 using Search Core Results

Migrating the solution from SP2010 to SP2013

Rebuilding from scratch in SP2013 using Search Results/Content by Search

Page 4: Iw411   migrating content by search from 2010 into 2013 - minified

LegalCorp.ComIntroducing our fictional client

LegalCorp.Com is a fictional example of a Global Multi National legal firm.

•Practices in 3 main global regions•Americas•EMEA•AsiaPac

•Each region represents key legal entities with their own reporting structures and requirements.

Page 5: Iw411   migrating content by search from 2010 into 2013 - minified

Global Challenges

The nature of the company meant that the client wanted to use a site collection for each region, with a global site at the top of the Navigation.

Page 6: Iw411   migrating content by search from 2010 into 2013 - minified

Global Challenges

This presented several challenges.

Consistent navigation.

Content Type syndication.

Client preference to avoid custom code.

Roll up of content from each of the regions.

Page 7: Iw411   migrating content by search from 2010 into 2013 - minified

What does the client want to achieve?To roll up news articles from each of the regions as well as from the Global site collection.

•The top four stories should be displayed in order of creation.•A region icon should be displayed to show where the story is from.•The story title should be displayed along with a summary of the article.

Page 8: Iw411   migrating content by search from 2010 into 2013 - minified

CQWP Limitations

CQWP is the usual tool of choice for the roll up of information.

Quick and easy to configure.

Fairly simple to customize with xslt.

Good for time critical information.

CQWP doesn’t work across site collections.

CQWP doesn’t provide paging ootb.

CQWP is limited to 1000 lists.

CQWP increases the demand on the web servers.

Page 9: Iw411   migrating content by search from 2010 into 2013 - minified

Enter our Hero!

Search

Page 10: Iw411   migrating content by search from 2010 into 2013 - minified

A Search alternative?

The search service application has been designed from the ground up to be scalable in enterprise situations.

Search results can be provided from multiple site collections.

Search results can be styled easily using xslt.

Complex search queries can be executed.

Page 11: Iw411   migrating content by search from 2010 into 2013 - minified

Our Kryptonite?

Result data is only as fresh as the crawls.

[Me] and [Today] tokens are not available. (SP2010)

Page 12: Iw411   migrating content by search from 2010 into 2013 - minified

Search needs more preparation.

In addition to Content Types and Site Columns Search needs:-

Search scopes Managed properties Regular crawls

Page 13: Iw411   migrating content by search from 2010 into 2013 - minified

Building our Solution in

SharePoint 2010

Page 14: Iw411   migrating content by search from 2010 into 2013 - minified

Building our Solution

Site Columns Content Type Page Layout Managed Properties Scope Search Core Results

Web Part XSLT

Page 15: Iw411   migrating content by search from 2010 into 2013 - minified

Site Columns

Region Sector Primary Sector Article Summary

Page 16: Iw411   migrating content by search from 2010 into 2013 - minified

Content Type

Name: Legal Corp News Article Page.

Inherits from Article Page (OOTB).

Adds our new site columns.

Page 17: Iw411   migrating content by search from 2010 into 2013 - minified

Content Type - Deployment

Manual Configuration

Content Type Hub Powershell Solution Package

Page 18: Iw411   migrating content by search from 2010 into 2013 - minified

New Page Layout(s) Copied from Article

Page Adds our new site

columns into the edit experience.

Page 19: Iw411   migrating content by search from 2010 into 2013 - minified

Managed Properties

Before you go any further. Create some content. Tag it properly Full Crawl.

Page 20: Iw411   migrating content by search from 2010 into 2013 - minified

Managed Properties

Crawled properties are extracted from the index.

Page 21: Iw411   migrating content by search from 2010 into 2013 - minified

Managed Properties

These can then be mapped to Managed properties and used in our web part.

Page 22: Iw411   migrating content by search from 2010 into 2013 - minified

Scope

Used to limit our results to just our web application.

Page 23: Iw411   migrating content by search from 2010 into 2013 - minified

Search Core Results Web part

Runs our fixed query and shows the results.

Page 24: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT

Used to control the rendering output of our results.

Page 25: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT

Page 26: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In the Search Core Results Web Part Properties

In a Site Collection style library

On the file system in /_layouts

In a federated location in the service app.

Page 27: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In the Search Core Results Web Part Properties

Page 28: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In a Site Collection Style Library Or on the file system

Use the XSL Link in the web part

properties tab to link to the file using a

relative path

Page 29: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In a federated location in the Search service application.

Page 30: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In a federated location in the Search service application.

Page 31: Iw411   migrating content by search from 2010 into 2013 - minified

XSLT – Deployment Options

In a federated location in the Search service application.

Page 32: Iw411   migrating content by search from 2010 into 2013 - minified

Search Core Results Web Part

Configure the managed properties to display in results.

Page 33: Iw411   migrating content by search from 2010 into 2013 - minified

Search Core Results Web Part

Configure Fixed Query

Page 34: Iw411   migrating content by search from 2010 into 2013 - minified

Building in 2010 – Key Points

Consider the impact to the search architecture and monitor the farm.

Remember to create, tag content and crawl it to make properties available.

Consider deployment options if migration to 2013 is likely.

Page 35: Iw411   migrating content by search from 2010 into 2013 - minified

PUTTING IT TOGETHER IN SHAREPOINT 2010

Demonstrating content roll-up using SharePoint 2010 search.

Page 36: Iw411   migrating content by search from 2010 into 2013 - minified
Page 37: Iw411   migrating content by search from 2010 into 2013 - minified

Migrating our Solution from

SharePoint 2010 to

SharePoint 2013

Page 38: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Options

There is no supported in-place upgrade option.

Web applications are upgraded through the content database attach method.

The search service application can be upgraded through a similar method. Managed Properties Scopes Federated Locations

Page 39: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Build new SP2013 farm Restore Search Admin DB (optional) Create Search Service Application Create new Web Application Restore Content Databases Attach content database to web

application Fix issues!

Page 40: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Page 41: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Page 42: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Our site columns are already configured as part of the content database migration, but not the managed properties.

Page 43: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

SharePoint 2013 now automatically adds Managed Properties for Site Columns discovered during crawls.

A suffix is added based on the field type.

Page 44: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

To pick up the new properties, we first amend the columns in our Core Results web part

And then the XSLT in the style library.

Page 45: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Page 46: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

Page 47: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

With a SharePoint 2013 master page

Page 48: Iw411   migrating content by search from 2010 into 2013 - minified

Migration Process

With a custom Master Page & Css

Page 49: Iw411   migrating content by search from 2010 into 2013 - minified

Migration – Key Points

Upgraded Scopes & Federated XSLT can’t be edited post migration.

Managed property names will change unless re-mapped.

Weigh up the benefits of building it from scratch in 2013 for the improved search options.

Page 50: Iw411   migrating content by search from 2010 into 2013 - minified

Building our solution from

scratch in SharePoint 2013

Page 51: Iw411   migrating content by search from 2010 into 2013 - minified

Flexing the new muscles of SharePoint Search Automatic Managed

Properties Result Sources Display Templates New Search Web

Parts Search Results Content by Search

(Enterprise CAL only) Continuous Crawl

Page 52: Iw411   migrating content by search from 2010 into 2013 - minified

Building our solution

Site Columns and Content Types

Page Layouts Managed Properties Result Sources Display Templates Image Renditions …..

Page 53: Iw411   migrating content by search from 2010 into 2013 - minified

Building our solution

…Web Parts Server Standard Cals

Search Results WP– More configuration required.– Duplicate trimming requires

the .webpart file to be amended.

Server Enterprise Cals Content by Search WP

– Easier to configure– Duplicate trimming off by default– Pre-configured variants

Page 54: Iw411   migrating content by search from 2010 into 2013 - minified

Site Columns & Content Types

Site Columns Content Types &

Deployment Page Layouts

Nothings Changed!

Page 55: Iw411   migrating content by search from 2010 into 2013 - minified

Managed properties

Automatically mapped from Site Columns Requires content to

be tagged and crawled before it happens!

Page 56: Iw411   migrating content by search from 2010 into 2013 - minified

Result Sources

Combines 2010 federated search and scopes + extras

Defined at Service App, Site collection or Web level.

Uses the Query Builder to define the search.

Page 57: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates

Controls the rendering of a search result item

No more XSLT! Html and JavaScript

based Design manager

creates raw JS file from the Html

Page 58: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates

Each template includes a header block with key properties.

These map to the Design Manager properties

Page 59: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates – Tag Rules Understand the tag rules! JavaScript goes inside

<!--#_ _#-->

Page 60: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates – Tag Rules Calls to JavaScript variables

within Html go inside _#= =#_

Page 61: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates – .JS File Generated automatically every

time the .Html is saved.

Page 62: Iw411   migrating content by search from 2010 into 2013 - minified

Display Templates – .JS File Troubleshooting is easy with

the IE Developer toolbar!

Page 63: Iw411   migrating content by search from 2010 into 2013 - minified

Image Renditions Sizing images made simple

Requires Publishing Features Requires Blob Caching

Ensures appropriate files sizes

Page 64: Iw411   migrating content by search from 2010 into 2013 - minified

Image Renditions

Page 65: Iw411   migrating content by search from 2010 into 2013 - minified

Image Renditions Can be used in several ways

Picked from the SharePoint Image Dialog

Or specified in the URL– By ID - ?RenditionID=5– By Size using Height And/Or Width

Page 66: Iw411   migrating content by search from 2010 into 2013 - minified

Web Parts – Search Results

Server Standard Cals Uses the Query

builder or another webpart for results.

Page 67: Iw411   migrating content by search from 2010 into 2013 - minified

Web Parts – Search Results Select result source in query builder and refine as needed.

Page 68: Iw411   migrating content by search from 2010 into 2013 - minified

Web Parts – Search Results And then choose a display template to

control the output rendering.

Page 69: Iw411   migrating content by search from 2010 into 2013 - minified

Web Parts – Content By Search Server Enterprise Cals Also uses query builder or another web part for results

More options for styling with Control and Item templates

Heavily used in catalog sites

Page 70: Iw411   migrating content by search from 2010 into 2013 - minified

Web Parts – Query Priority Both Standard and Enterprise results web parts can be given a query priority for

times when search is busy.

Page 71: Iw411   migrating content by search from 2010 into 2013 - minified

Building in 2013 – Key Points

Familiarise yourself with all of the capabilities of 2013 search before deciding on which design route to take.

Think beyond the singular! Dust off those HTML and

JavaScript skills.

Page 72: Iw411   migrating content by search from 2010 into 2013 - minified

PUTTING IT TOGETHER IN SHAREPOINT 2013

Demonstrating content roll-up using SharePoint 2013 search.

Page 73: Iw411   migrating content by search from 2010 into 2013 - minified
Page 74: Iw411   migrating content by search from 2010 into 2013 - minified

Related Sessions IT102 – SharePoint Search

All Up – Neil Hodgkinson IT114 – Upgrading,

Deploying and Scaling out SharePoint search – Neil Hodgkinson

P&M306 – Using Javascript templates to customize the SharePoint UI – Chris O’Brien

P&M308 – Soup to nuts – How to build a metadata & search driven Intranet – Chris Johnson

IW507 & IW508 – Making the most of Content Aggregation in SharePoint Pts 1&2 – Christina Wheeler

DEV209 – Developers approach to search applications – Matthew McDermott

Page 75: Iw411   migrating content by search from 2010 into 2013 - minified

Questions?

Page 76: Iw411   migrating content by search from 2010 into 2013 - minified

Thank you for attending!

See you at the conference party tonight!