SlideShare a Scribd company logo
SharePoint Advocate and
Enthusiast
PixelMill
ERIC OVERFIELD | @ericoverfield
INTEGRATING SEARCH
DRIVEN CONTENT
IN SHAREPOINT
ericoverfield.com @ericoverfield
Founder and SharePoint Branding/UI Lead, PixelMill
Speaker, Teacher, Advocate, Author
SharePoint Community Organizer
Located in Davis, CA
Co-author: “Black Magic Solutions for White Hat SharePoint”
(August, 2013)
Co-author: “Pro SharePoint 2013 Branding and Responsive Web Development”
(Apress – June 12th, 2013)
Order Your Copy
http://pxml.ly/zsqykd
INTRODUCTION ERIC OVERFIELD
WHAT YOU WILL LEARN TODAY
1
2
3
ericoverfield.com @ericoverfield
AGGREGATE CONTENT ACROSS SITES
CROSS-SITE PUBLISHING FEATURE
CREATE CONTENT ROLLUP SOLUTIONS
CUSTOM DISPLAY TEMPLATES
CUSTOMIZE INDIVIDUAL SEARCH RESULTS
RESULT TYPES
4 FINE-TUNE SEARCH QUERIES
QUERY RULES
CONTENT
AGGREGATION
ACROSS SITE(S)
THE OLD WAY
ericoverfield.com @ericoverfield
Site Collection A
Site Collection B
SearchSearch
Crawl
Search
Crawl
Search
Content
Query
Web Part
(CBQ)
Site Collection A
Site Collection B
Content
Query
Web Part
(CBQ)
THE SHAREPOINT ONLINE/2013/2016 WAY
ericoverfield.com @ericoverfield
Site Collection /
Content A
Search
Search
Crawl
Content Search
Web Part
Site Collection C / Aggregator
Site Collection /
Content B
List of articles/documents
Recommendations
Popular items
DEMO SOLUTION WHAT WE WANT TO BUILD
ericoverfield.com @ericoverfield
Scenario:
Show dynamic content
Show potential buyers
a rollup of all the
Available properties for sale
SOLUTION
ericoverfield.com @ericoverfield
IMPORTANT PREREQUISITES
 Enterprise License Required (O365 requires >= E3)
 For Catalog creation and CBS
 Depends on Search Index / Index Freshness
 Source site collection feature
 Cross-Site Collection Publishing must be activated
 On both authoring and display sites
ericoverfield.com @ericoverfield
LIMITATIONS OF CROSS-SITE PUBLISHING
 Consuming site requires restricted read access on authoring site
 Because results can be security trimmed
 Cross site publishing only supports pages and lists
 Content assets (videos, images, etc.) need to be on assets site
 Use Suggested Content Browser Location
 REMEMBER - Results based on search index freshness
ericoverfield.com @ericoverfield
WHAT ABOUT CONTENT DEPLOYMENT?
 Very different approach
 On-prem only, no SPO support
 Must be across content databases
 Not based on search
 May be used for similar reasons,
 Yet apples to oranges comparison
ericoverfield.com @ericoverfield
SOURCE CONTENT
 Store it anywhere, across site collections, web applications or farms
ericoverfield.com @ericoverfield
CREATE CATALOG
ericoverfield.com @ericoverfield
MANAGED PROPERTIES
 Required to surface/retrieve site/content columns
 Configured in Central Admin or Site Collection
 On-prem: Central Admin -> Search Schema
 O365: SharePoint Admin -> Search
 Content has to have been crawled to create crawled properties
 Another full crawl after new managed property(s)
 O365 Custom managed properties only Text or Yes/No
 Created in Admin Center
 Not refinable – must use an existing “Refinable” property w/alias
ericoverfield.com @ericoverfield
CREATING MANAGED PROPERTIES
ericoverfield.com @ericoverfield
DEMO
SHAREPOINT ONLINE
MANAGED PROPERTIES
GETTING CONTENT FROM A CATALOG
ericoverfield.com @ericoverfield
AGGREGATE CONTENT REVIEW
 Prerequisites have been addressed (licenses and features)
 We have source content -> catalog, stored anywhere (almost)
 Content has been crawled
 Managed properties have been created
 Content has been crawled - again
 Consuming site has been connected to catalog
 Ready to display!
ericoverfield.com @ericoverfield
CONTENT ROLLUP
WITH THE
CONTENT SEARCH
WEB PART
ericoverfield.com @ericoverfield
CONTENT SEARCH WEB PART OVERVIEW
Getting the results:
Query Builder
Showing the results:
Display Templates
GET DYNAMIC CONTENT WITH QUERY BUILDER
ericoverfield.com @ericoverfield
DEMO
CONTENT SEARCH
WEB PART
CUSTOMIZE YOUR
DISPLAY TEMPLATES
DISPLAY TEAMPLTE OVERVIEW
 Control templates
 Item templates
 HTML and JavaScript
 No more XSLT!
 Retrieves Managed Properties
ericoverfield.com @ericoverfield
CUSTOM DISPLAY TEMPLATES
 Add to Master Page Gallery
 Copy from an existing display template
 Use any editor
ericoverfield.com @ericoverfield
IMPLEMENTING CUSTOM DISPLAY TEMPLATES
 Must specify all managed properties to surface
 May externalize CSS and JS that template needs
 Inline JS must appear after the first <div>
 Add HTML markup to render results
ericoverfield.com @ericoverfield
A LOOK THAT THE CODE ITEM TEMPLATE
 Obtain Managed Properties
ericoverfield.com @ericoverfield
<mso:ManagedPropertyMapping msdt:dt="string">
'LastModifiedTime':'LastModifiedTime',
'Specter Property Type'{Specter Property Type}:'SpecterPropertyType',
'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL',
'Link URL'{Link URL}:'Path',
'Line 1'{Line 1}:'Title',
'Line 2'{Line 2}:'Description',
'SecondaryFileExtension',
'ContentTypeId'
</mso:ManagedPropertyMapping>
A LOOK THAT THE CODE ITEM TEMPLATE
 Load Managed Properties into JavaScript Variables
ericoverfield.com @ericoverfield
var specterPropertyType = $getItemValue(ctx, "Specter Property Type");
var lastModifiedTime = $getItemValue(ctx, "LastModifiedTime");
A LOOK THAT THE CODE ITEM TEMPLATE
 Display JavaScript variables with HTML markup
ericoverfield.com @ericoverfield
<span class="_#= specterPropertyType=#_">
<a href="_#= linkURL =#_" class="thumb">
_#= pictureMarkup =#_
<div class="date">
<div class="d">_#= date=#_</div>
<div class="m">_#= month=#_</div>
</div>
</a>
<div class="caption">Property Type: _#=
specterPropertyType=#_</div>
</span>
DEMO
DISPLAY
TEMPLATES
FINE TUNE
SEARCH RESULTS AND
CONTENT ROLLUPS
TARGET INDIVIDUAL
RESULT ITEMS
THE PROBLEM
 Results all look the same
 But all documents / results are not the same
 Forces us to search out results
ericoverfield.com @ericoverfield
DEMO SOLUTION WHAT WE WANT TO BUILD
ericoverfield.com @ericoverfield
Scenario:
Customize Search Experience
When user searches for “floor plans”
 Customize floor plans result type
as best bets
 Promote beachfront properties
in the summer
RESULT TYPES
 Tailor the look of important types of results
ericoverfield.com @ericoverfield
One of these things… is not like the other.
RESULT TYPES
 Conditions match result properties
 Identify a “type” of result
 Display Templates can change the look
 Of a “type” of result
ericoverfield.com @ericoverfield
YOUR OWN RESULT TYPE
ericoverfield.com @ericoverfield
QUERY
RULES
QUERY RULES
 Custom results based on intent
 May be created at various levels
 Search Service App, Site Collection, inherited
 May be deactivated at child levels
ericoverfield.com @ericoverfield
YOUR OWN QUERY RULES
 Condition: Set of conditions to match to fire rule
 One or more conditions per rule
 Six types of conditions available
 Action: What to do when rule fired
 One or more actions per rule
 Six types of actions available on-prem. O365 has two
 Publishing: When should a rule be active
 i.e. only during a certain time span
ericoverfield.com @ericoverfield
YOUR OWN QUERY RULE
ericoverfield.com @ericoverfield
ericoverfield.com @ericoverfield
ericoverfield.com @ericoverfield
DEMO
RESULT TYPES
& QUERY RULES
1
2
3
ericoverfield.com @ericoverfield
AGGREGATE CONTENT ACROSS SITES
CROSS-SITE PUBLISHING FEATURE
CREATE CONTENT ROLLUP SOLUTIONS
CUSTOM DISPLAY TEMPLATES
CUSTOMIZE INDIVIDUAL SEARCH RESULTS
RESULT TYPES
4 FINE-TUNE SEARCH QUERIES
QUERY RULES
A QUICK REVIEW
RESOURCES
ericoverfield.com @ericoverfield
Configure cross-site publishing in SharePoint 2013:
http://technet.microsoft.com/en-us/library/jj656774.aspx
Administer search in SharePoint Server 2013:
http://technet.microsoft.com/en-us/library/ee792877.aspx
Connect a publishing site to a catalog:
http://technet.microsoft.com/en-us/library/jj679901.aspx
Customize search result types:
http://technet.microsoft.com/en-us/library/dn135239.aspx
Content Features in SharePoint Online:
http://pxml.ly/1uQbZjl
Display template reference in SharePoint Server 2013:
http://technet.microsoft.com/en-us/library/jj944947.aspx
Create query rules:
http://technet.microsoft.com/en-us/library/jj871014.aspx
SPO search administration overview:
http://pxml.ly/ZA4d1v
Manage the search schema in SPO:
http://pxml.ly/1yliyyi
Manually request crawling and re-
indexing of a site, a library or a list:
http://pxml.ly/1sSCIHD
INTEGRATING SEARCH DRIVEN
CONTENT IN SHAREPOINT
THANK YOU
QUESTIONS?
@ericoverfield http://pxml.ly/EO-Search-Driven
Order Your Copy
http://pxml.ly/zsqykd
“Pro SharePoint 2013 Branding and Responsive Web Development”
(Apress – June 12th, 2013)

More Related Content

PDF
SharePoint 2013 Search Driven Sites - SPSHOU
PPTX
SharePoint 2013 Content search web part - Get it all in one place and style it!
PPTX
SPCA2013 - Content Search Web Part
PPTX
Understanding SharePoint Content Types
PPTX
Understanding SharePoint site structure what's inside
PDF
Rotating Banner in SharePoint with a DataView Webpart
PPTX
Branding SharePoint from Prototype to Deployment - Workshop
PDF
SPSSTHLM - Using JSLink and Display Templates for ITPros
SharePoint 2013 Search Driven Sites - SPSHOU
SharePoint 2013 Content search web part - Get it all in one place and style it!
SPCA2013 - Content Search Web Part
Understanding SharePoint Content Types
Understanding SharePoint site structure what's inside
Rotating Banner in SharePoint with a DataView Webpart
Branding SharePoint from Prototype to Deployment - Workshop
SPSSTHLM - Using JSLink and Display Templates for ITPros

What's hot (20)

PDF
Designing Corporate News Application Using SharePoint 2013 Web Content Manage...
PDF
Build Killer Visuals with SharePoint 2013 Search & Display Templates
PPTX
Branding sharepoint project
PPTX
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
PPTX
Intro to SharePoint Web Services
PPTX
Enhance SharePoint 2013 with Responsive Web Design
PPTX
Using js link and display templates
PPTX
A Power User's Intro to jQuery Awesomeness in SharePoint
PDF
Style guide for share point 2013 branding
PPTX
SharePoint Fest Chicago Web Content Management in SharePoint 2013
PPTX
Branding Modern SharePoint
PPTX
Introduction to StratusForms #SayNoToInfoPath
PPTX
SharePoint Saturday DFW 2015 - Build a SharePoint 2013 Search Driven Application
PDF
Exploring the New Search in SharePoint 2013 - What can you do now?
PDF
Understand the SharePoint Basics
PPTX
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
PDF
Internet Sites in Microsoft Azure Using SharePoint 2013 - Solution Model
PPTX
(Updated) SharePoint & jQuery Guide
PDF
NOW I Get it!! What SharePoint IS and why I need it
PPTX
SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
Designing Corporate News Application Using SharePoint 2013 Web Content Manage...
Build Killer Visuals with SharePoint 2013 Search & Display Templates
Branding sharepoint project
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Intro to SharePoint Web Services
Enhance SharePoint 2013 with Responsive Web Design
Using js link and display templates
A Power User's Intro to jQuery Awesomeness in SharePoint
Style guide for share point 2013 branding
SharePoint Fest Chicago Web Content Management in SharePoint 2013
Branding Modern SharePoint
Introduction to StratusForms #SayNoToInfoPath
SharePoint Saturday DFW 2015 - Build a SharePoint 2013 Search Driven Application
Exploring the New Search in SharePoint 2013 - What can you do now?
Understand the SharePoint Basics
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
Internet Sites in Microsoft Azure Using SharePoint 2013 - Solution Model
(Updated) SharePoint & jQuery Guide
NOW I Get it!! What SharePoint IS and why I need it
SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
Ad

Viewers also liked (20)

PPTX
SharePoint Search Zero to Search Hero - SPSNL 2016
PPTX
SharePoint Highlights: Search-driven portals, door Waldek Mastykarz
PPTX
Evolution of Search : What's New and Improved in SharePoint 2016
PPTX
Understanding SharePoint Roles
PPTX
SharePoint 2016 Search
PDF
10 Reasons your SharePoint Migration Failed
PPTX
Search Engine Powerpoint
PPTX
The Politics Of Federated Queries
PDF
Tweet Tweet Tweet Twitter
PDF
16 things that Panhandlers can teach us about Content Marketing
PPTX
Cubicle Ninjas' Code of Honor
PPT
Email and tomorrow
PDF
Hashtag 101 - All You Need to Know About Hashtags
PPTX
The Do's and Don'ts of Presentations
PPTX
Using Color to Convey Data in Charts
PPTX
The no bullet bullet slide
PDF
Amazing First Slide Picture Templates
PDF
Weekly Inspirational Quotes by Fun Team Building
PDF
Preparing to fail
PPT
Effective Use of Icons & Images
SharePoint Search Zero to Search Hero - SPSNL 2016
SharePoint Highlights: Search-driven portals, door Waldek Mastykarz
Evolution of Search : What's New and Improved in SharePoint 2016
Understanding SharePoint Roles
SharePoint 2016 Search
10 Reasons your SharePoint Migration Failed
Search Engine Powerpoint
The Politics Of Federated Queries
Tweet Tweet Tweet Twitter
16 things that Panhandlers can teach us about Content Marketing
Cubicle Ninjas' Code of Honor
Email and tomorrow
Hashtag 101 - All You Need to Know About Hashtags
The Do's and Don'ts of Presentations
Using Color to Convey Data in Charts
The no bullet bullet slide
Amazing First Slide Picture Templates
Weekly Inspirational Quotes by Fun Team Building
Preparing to fail
Effective Use of Icons & Images
Ad

Similar to Integrating Search Driven Content in SharePoint 2013/2016/O365 (20)

PPT
Iw411 migrating content by search from 2010 into 2013 - minified
PPTX
Getting the Most out of Your Content in SharePoint 2010 with Enterprise Search
PPTX
Top ten new ECM features in SharePoint 2013
PPTX
Optimizing SharePoint for Transactional Content Management
PPTX
SharePoint Fest - Document Management with Content Types, Taxonomy and Search
PPTX
Sharepoint 2013 Overview
PPTX
March Spug
PPTX
March spug
PDF
Build search-driven site - understanding cross-site publishing
PPTX
Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...
PDF
Spca2014 search workshop niaulin
PPTX
Solve Todays Problems with 10 New SharePoint 2010 Features
PPTX
2014 TechFuse - Findability Within SharePoint 2013
PPTX
SPS Phoenix Optimizing SharePoint for Transactional Content Management
PDF
What's new in SharePoint 2013 - Discover it
PPTX
SPSNH13 - SharePoint 2013 + Enterprise Content Management
PPTX
Enterprise Content Management + SharePoint 2013 - SPSNH
PPTX
Introduction To Enterprise Search Tulsa Tech Fest 2009
PPTX
SharePoint 2013 Web Content Management for Developers TSPUG
PPTX
SharePoint 2013 Web Content Management for Developers HSPUG
Iw411 migrating content by search from 2010 into 2013 - minified
Getting the Most out of Your Content in SharePoint 2010 with Enterprise Search
Top ten new ECM features in SharePoint 2013
Optimizing SharePoint for Transactional Content Management
SharePoint Fest - Document Management with Content Types, Taxonomy and Search
Sharepoint 2013 Overview
March Spug
March spug
Build search-driven site - understanding cross-site publishing
Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...
Spca2014 search workshop niaulin
Solve Todays Problems with 10 New SharePoint 2010 Features
2014 TechFuse - Findability Within SharePoint 2013
SPS Phoenix Optimizing SharePoint for Transactional Content Management
What's new in SharePoint 2013 - Discover it
SPSNH13 - SharePoint 2013 + Enterprise Content Management
Enterprise Content Management + SharePoint 2013 - SPSNH
Introduction To Enterprise Search Tulsa Tech Fest 2009
SharePoint 2013 Web Content Management for Developers TSPUG
SharePoint 2013 Web Content Management for Developers HSPUG

More from Eric Overfield (20)

PPTX
The Adventures of Azure Functions and Microsoft Graph
PPTX
All You Need to Know for Automated SharePoint Site Provisioning with PnP Powe...
PPTX
Use Office UI Fabric React to Build Beauty with SharePoint
PPTX
Uncovering the Latest in SharePoint Development
PPTX
Supercharge Your SharePoint Framework Webpart with React
PPTX
Build Your First SharePoint Framework Webpart
PPTX
Use office ui fabric react to build beauty with SharePoint
PPTX
Move past bootstrap and build our lightweight responsive framework w.v1.2
PPTX
Broaden your dev skillset with SharePoint branding options
PPTX
Who Needs A Developer For Automated SharePoint Provisioning
PPTX
Microsoft Ignite 2016 In Review
PPTX
The Future of SharePoint - What You Need to Know
PPTX
Create your own SharePoint Master Pages and Page Layouts
PPTX
Share point 2013 apps and i mean it
PPTX
Your SharePoint 2013 Branding Initiation
PPTX
Shape SharePoint 2013 for Mobile
PPTX
The 2013 Design Manager - From HTML to SharePoint
PPTX
The Design Dilemma of Mobile and SharePoint
PPTX
Enhance SharePoint 2013 with Responsive Web Design
PPTX
Enhancing SharePoint with Responsive Web Design
The Adventures of Azure Functions and Microsoft Graph
All You Need to Know for Automated SharePoint Site Provisioning with PnP Powe...
Use Office UI Fabric React to Build Beauty with SharePoint
Uncovering the Latest in SharePoint Development
Supercharge Your SharePoint Framework Webpart with React
Build Your First SharePoint Framework Webpart
Use office ui fabric react to build beauty with SharePoint
Move past bootstrap and build our lightweight responsive framework w.v1.2
Broaden your dev skillset with SharePoint branding options
Who Needs A Developer For Automated SharePoint Provisioning
Microsoft Ignite 2016 In Review
The Future of SharePoint - What You Need to Know
Create your own SharePoint Master Pages and Page Layouts
Share point 2013 apps and i mean it
Your SharePoint 2013 Branding Initiation
Shape SharePoint 2013 for Mobile
The 2013 Design Manager - From HTML to SharePoint
The Design Dilemma of Mobile and SharePoint
Enhance SharePoint 2013 with Responsive Web Design
Enhancing SharePoint with Responsive Web Design

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PPTX
Cell Structure & Organelles in detailed.
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PDF
Insiders guide to clinical Medicine.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Business Ethics Teaching Materials for college
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
RMMM.pdf make it easy to upload and study
Cell Structure & Organelles in detailed.
102 student loan defaulters named and shamed – Is someone you know on the list?
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Anesthesia in Laparoscopic Surgery in India
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
Insiders guide to clinical Medicine.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Complications of Minimal Access Surgery at WLH
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Business Ethics Teaching Materials for college
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx

Integrating Search Driven Content in SharePoint 2013/2016/O365

  • 1. SharePoint Advocate and Enthusiast PixelMill ERIC OVERFIELD | @ericoverfield INTEGRATING SEARCH DRIVEN CONTENT IN SHAREPOINT
  • 2. ericoverfield.com @ericoverfield Founder and SharePoint Branding/UI Lead, PixelMill Speaker, Teacher, Advocate, Author SharePoint Community Organizer Located in Davis, CA Co-author: “Black Magic Solutions for White Hat SharePoint” (August, 2013) Co-author: “Pro SharePoint 2013 Branding and Responsive Web Development” (Apress – June 12th, 2013) Order Your Copy http://pxml.ly/zsqykd INTRODUCTION ERIC OVERFIELD
  • 3. WHAT YOU WILL LEARN TODAY 1 2 3 ericoverfield.com @ericoverfield AGGREGATE CONTENT ACROSS SITES CROSS-SITE PUBLISHING FEATURE CREATE CONTENT ROLLUP SOLUTIONS CUSTOM DISPLAY TEMPLATES CUSTOMIZE INDIVIDUAL SEARCH RESULTS RESULT TYPES 4 FINE-TUNE SEARCH QUERIES QUERY RULES
  • 5. THE OLD WAY ericoverfield.com @ericoverfield Site Collection A Site Collection B SearchSearch Crawl Search Crawl Search Content Query Web Part (CBQ) Site Collection A Site Collection B Content Query Web Part (CBQ)
  • 6. THE SHAREPOINT ONLINE/2013/2016 WAY ericoverfield.com @ericoverfield Site Collection / Content A Search Search Crawl Content Search Web Part Site Collection C / Aggregator Site Collection / Content B List of articles/documents Recommendations Popular items
  • 7. DEMO SOLUTION WHAT WE WANT TO BUILD ericoverfield.com @ericoverfield Scenario: Show dynamic content Show potential buyers a rollup of all the Available properties for sale
  • 9. IMPORTANT PREREQUISITES  Enterprise License Required (O365 requires >= E3)  For Catalog creation and CBS  Depends on Search Index / Index Freshness  Source site collection feature  Cross-Site Collection Publishing must be activated  On both authoring and display sites ericoverfield.com @ericoverfield
  • 10. LIMITATIONS OF CROSS-SITE PUBLISHING  Consuming site requires restricted read access on authoring site  Because results can be security trimmed  Cross site publishing only supports pages and lists  Content assets (videos, images, etc.) need to be on assets site  Use Suggested Content Browser Location  REMEMBER - Results based on search index freshness ericoverfield.com @ericoverfield
  • 11. WHAT ABOUT CONTENT DEPLOYMENT?  Very different approach  On-prem only, no SPO support  Must be across content databases  Not based on search  May be used for similar reasons,  Yet apples to oranges comparison ericoverfield.com @ericoverfield
  • 12. SOURCE CONTENT  Store it anywhere, across site collections, web applications or farms ericoverfield.com @ericoverfield
  • 14. MANAGED PROPERTIES  Required to surface/retrieve site/content columns  Configured in Central Admin or Site Collection  On-prem: Central Admin -> Search Schema  O365: SharePoint Admin -> Search  Content has to have been crawled to create crawled properties  Another full crawl after new managed property(s)  O365 Custom managed properties only Text or Yes/No  Created in Admin Center  Not refinable – must use an existing “Refinable” property w/alias ericoverfield.com @ericoverfield
  • 17. GETTING CONTENT FROM A CATALOG ericoverfield.com @ericoverfield
  • 18. AGGREGATE CONTENT REVIEW  Prerequisites have been addressed (licenses and features)  We have source content -> catalog, stored anywhere (almost)  Content has been crawled  Managed properties have been created  Content has been crawled - again  Consuming site has been connected to catalog  Ready to display! ericoverfield.com @ericoverfield
  • 20. ericoverfield.com @ericoverfield CONTENT SEARCH WEB PART OVERVIEW Getting the results: Query Builder Showing the results: Display Templates
  • 21. GET DYNAMIC CONTENT WITH QUERY BUILDER ericoverfield.com @ericoverfield
  • 24. DISPLAY TEAMPLTE OVERVIEW  Control templates  Item templates  HTML and JavaScript  No more XSLT!  Retrieves Managed Properties ericoverfield.com @ericoverfield
  • 25. CUSTOM DISPLAY TEMPLATES  Add to Master Page Gallery  Copy from an existing display template  Use any editor ericoverfield.com @ericoverfield
  • 26. IMPLEMENTING CUSTOM DISPLAY TEMPLATES  Must specify all managed properties to surface  May externalize CSS and JS that template needs  Inline JS must appear after the first <div>  Add HTML markup to render results ericoverfield.com @ericoverfield
  • 27. A LOOK THAT THE CODE ITEM TEMPLATE  Obtain Managed Properties ericoverfield.com @ericoverfield <mso:ManagedPropertyMapping msdt:dt="string"> 'LastModifiedTime':'LastModifiedTime', 'Specter Property Type'{Specter Property Type}:'SpecterPropertyType', 'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL', 'Link URL'{Link URL}:'Path', 'Line 1'{Line 1}:'Title', 'Line 2'{Line 2}:'Description', 'SecondaryFileExtension', 'ContentTypeId' </mso:ManagedPropertyMapping>
  • 28. A LOOK THAT THE CODE ITEM TEMPLATE  Load Managed Properties into JavaScript Variables ericoverfield.com @ericoverfield var specterPropertyType = $getItemValue(ctx, "Specter Property Type"); var lastModifiedTime = $getItemValue(ctx, "LastModifiedTime");
  • 29. A LOOK THAT THE CODE ITEM TEMPLATE  Display JavaScript variables with HTML markup ericoverfield.com @ericoverfield <span class="_#= specterPropertyType=#_"> <a href="_#= linkURL =#_" class="thumb"> _#= pictureMarkup =#_ <div class="date"> <div class="d">_#= date=#_</div> <div class="m">_#= month=#_</div> </div> </a> <div class="caption">Property Type: _#= specterPropertyType=#_</div> </span>
  • 31. FINE TUNE SEARCH RESULTS AND CONTENT ROLLUPS
  • 33. THE PROBLEM  Results all look the same  But all documents / results are not the same  Forces us to search out results ericoverfield.com @ericoverfield
  • 34. DEMO SOLUTION WHAT WE WANT TO BUILD ericoverfield.com @ericoverfield Scenario: Customize Search Experience When user searches for “floor plans”  Customize floor plans result type as best bets  Promote beachfront properties in the summer
  • 35. RESULT TYPES  Tailor the look of important types of results ericoverfield.com @ericoverfield One of these things… is not like the other.
  • 36. RESULT TYPES  Conditions match result properties  Identify a “type” of result  Display Templates can change the look  Of a “type” of result ericoverfield.com @ericoverfield
  • 37. YOUR OWN RESULT TYPE ericoverfield.com @ericoverfield
  • 39. QUERY RULES  Custom results based on intent  May be created at various levels  Search Service App, Site Collection, inherited  May be deactivated at child levels ericoverfield.com @ericoverfield
  • 40. YOUR OWN QUERY RULES  Condition: Set of conditions to match to fire rule  One or more conditions per rule  Six types of conditions available  Action: What to do when rule fired  One or more actions per rule  Six types of actions available on-prem. O365 has two  Publishing: When should a rule be active  i.e. only during a certain time span ericoverfield.com @ericoverfield
  • 41. YOUR OWN QUERY RULE ericoverfield.com @ericoverfield
  • 45. 1 2 3 ericoverfield.com @ericoverfield AGGREGATE CONTENT ACROSS SITES CROSS-SITE PUBLISHING FEATURE CREATE CONTENT ROLLUP SOLUTIONS CUSTOM DISPLAY TEMPLATES CUSTOMIZE INDIVIDUAL SEARCH RESULTS RESULT TYPES 4 FINE-TUNE SEARCH QUERIES QUERY RULES A QUICK REVIEW
  • 46. RESOURCES ericoverfield.com @ericoverfield Configure cross-site publishing in SharePoint 2013: http://technet.microsoft.com/en-us/library/jj656774.aspx Administer search in SharePoint Server 2013: http://technet.microsoft.com/en-us/library/ee792877.aspx Connect a publishing site to a catalog: http://technet.microsoft.com/en-us/library/jj679901.aspx Customize search result types: http://technet.microsoft.com/en-us/library/dn135239.aspx Content Features in SharePoint Online: http://pxml.ly/1uQbZjl Display template reference in SharePoint Server 2013: http://technet.microsoft.com/en-us/library/jj944947.aspx Create query rules: http://technet.microsoft.com/en-us/library/jj871014.aspx SPO search administration overview: http://pxml.ly/ZA4d1v Manage the search schema in SPO: http://pxml.ly/1yliyyi Manually request crawling and re- indexing of a site, a library or a list: http://pxml.ly/1sSCIHD
  • 47. INTEGRATING SEARCH DRIVEN CONTENT IN SHAREPOINT THANK YOU QUESTIONS? @ericoverfield http://pxml.ly/EO-Search-Driven Order Your Copy http://pxml.ly/zsqykd “Pro SharePoint 2013 Branding and Responsive Web Development” (Apress – June 12th, 2013)

Editor's Notes

  • #2: Slides will be available from blog and twitter In-depth look at SharePoint Online and 2013 Master pages and page layouts. Will be working on SPO, but 2013 is the same. Devs should be happy, we will walk through the process. Business users, you will see what is possible. Meat will be in the demos http://www.zengardner.com/wp-content/uploads/Manifest-Law-of-Attraction1-700x471.jpg Who has already worked with RWD and SP? Thoughts? Scratch, framework, how did you do it?
  • #3: Will make available on blog and twitter (slideshare.net), so if you remember one of those then you can always review everything we discuss
  • #7: Can also be content within site collection or web app, also across web app
  • #8: In the first scenario, we want to show potential buyers a rollup of all the available Specter Group properties for sale from all the communities, such as floor plans, description, and property type. Because only builders and architects at Specter Group can author and manage floor plans, we want to have a dedicated and separate site just for floor plans (www.spectergroup.com/sites/floorplan). Meanwhile, we want to present all the floor plans to site visitors of www.spectergroup.com in a seamless manner. To accomplish this, we need to perform the following steps We need to make the floor plan content in the authoring site available to search so that other sites can consume the content. We need to ensure search is periodically indexing the authoring content to ensure the dynamic content is up to date. From the public spectergroup.com site, we need to consume the floor plan content from search. From the public spectergroup.com site, we need to customize the display of the rolled up content.
  • #9: To accomplish this, we need to perform the following steps (for a process diagram of the scenario, refer to Figure 9-1): We need to make the floor plan content in the authoring site available to search so that other sites can consume the content. We need to ensure search is periodically indexing the authoring content to ensure the dynamic content is up to date. From the public spectergroup.com site, we need to consume the floor plan content from search. From the public spectergroup.com site, we need to customize the display of the rolled up content. Content deployment? Extranet users must have (restricted) read permission on authoring site – this is required unless you want to make content anonymous. customer does not agree with allowing external users access to authoring environment (separate farm that also hosts Intranet, etc). XSP only supports pages and lists; as such, assets must be managed in a separate site collection (sub-optimal authoring experience) One of the consequences of using the SharePoint 2013 search-based publishing model is that it only applies to the content that can be indexed. All other assets such as images or files are not included in the search index and therefore it is still your responsibility to ensure that they are available everywhere where the content from a catalog might be published. store all publicly available assets in a separate Site Collection; Using Suggested Content Browser Locations makes it easier for content authors to work with assets stored in a different Site Collection than the one they use for authoring content. the problem is that Content deployment is not only a matter of size. It is more a matter of number of changes, frequency of deployments and concurrency between what gets read and updated while there’s activity on the destination site
  • #12: CD must be across content databases because GUID’s for content are shared
  • #13: May be stored anywhere, across site collections, web applications, and also across farms.
  • #15: After you crawl the content Create a new Managed property from a crawled property
  • #17: Show managed properties in SPO
  • #18: On the Specter Group public facing site, click Site Settings. Under Site Administration, click Manage catalog connections. Click the Connect to a Catalog link on the page to view all the available published catalogs. For our scenario, click the Connect link next to the Floor Plan - Specter Group Community Floor Plans catalog When connecting to a catalog, we have the option to integrate the catalog with the whole site by selecting Integrate the catalog into my site or we can select Connect, but do not integrate the catalog to allow less integration. Because we are exposing the Floor plan content specifically on one page, the Floor Plans page, we will not be integrating with the Specter Group public-facing site's navigation. Because we are presenting the search results to public users, they will not have access to the authoring site, http://spectergroup.com/sites/floorplan site collection. Under the Catalog Item URL Behavior section, ensure the Make URLs relative to this site option is selected
  • #22: I prefer advanced mode, create the query, use builder to help. Preview is on right. Not always perfect, but helpful User refiners, sorting and settings to help configure. Test to help test results
  • #35: In the second scenario, we want to customize the search experience. When users search for the keyword "floor plans", the following things happen: We will show a block of results that are all floor plans. We will promote a few beachfront properties to the top of the results if the current month is in the summer. We will render the block of results for floor plans with its own user interface to distinguish these results from all other results in the list.
  • #38: click New Result Type at the top. Enter Floor Plans as the name of the new result type. Next to Conditions, select the Floor Plan result source to match (see Figure 9-68). By configuring the result source as its only condition, any result item in the Floor Plan result source will use this result type for rendering. Configure the new result type to use the Best Bet Item display template
  • #40: fine-tuning the query to offer results that we think the users are looking for In SharePoint 2013, we are able to fine-tune search results based on the intent of the user's query. When users enter a query, we help them find what they are really looking for by fine-tuning the query and adding additional information to offer results that we think the users are looking for. Query rules can be created at various levels, in the Search Service application from Central Admin or at the site collection level. They are inherited by default, such that query rules created in the Search Service application are inherited by all the site collections and query rules created at the site collection level are inherited by all sites within the site collection. They can also be deactivated at a level to ensure the rule is never applied for queries submitted at that level. Condition: Set of conditions to match for this rule to fire (example: no conditions means the rule will be fired every time). If multiple conditions are specified, as long as one of the conditions is matched, then the query rule will be invoked. There are six types of conditions to choose from when creating a query rule: Query Matches Keyword Exactly: Query contains a specific word or words. Query Matches Dictionary Exactly: Query contains a word in a specific dictionary. Query Contains Action Term: Query contains an action word that matches a specific phrase or term set. Query More Common in Source: Query is common in a different source (like Videos Results Source). Result Type Commonly Clicked: Results include a common result type (like file type). Advanced Query Text Match: Advanced rule to match across a set of terms, dictionary, regular expression, and so on. For the Specter Group Floor Plans scenario, we are going to configure our query rule for Floor Plans with the condition to match keyword "Floor plans." Next, we need to configure actions to specify what happens when the query rule is applied. We can add multiple actions for each query rule. There are three options for actions: Assign promoted results: A promoted result is a result that appears at the top of the search results. This is similar to Best Bets in SharePoint 2010 or Visual Best Bets in FAST Search for SharePoint 2010. We can promote a result as a link or as a banner, which is a quick and easy way to visually present a certain result to users. Add result block: A result block is several search results displayed as a group. Similar to promoting a search result, we can promote a result block. A result block specifies an additional query to run and how to display the results A result block uses a result source, which can be results from the local search index or results from outside of SharePoint, such as Exchange or OpenSearch. Both search scopes and federated locations features from SharePoint 2010 have evolved into result sources. An example of a result source using OpenSearch is federating search results from Bing by providing the OpenSearch URL for its search service. An example of an out-of-the-box result source, Documents, returns all files from the local SharePoint index. While configuring a result block, this feature includes a full query designer for building and testing queries, similar to Query Builder in the Content Search web part. A result block can be configured to use specific custom display templates. Change ranked results by changing the query: Change the way SharePoint handles a particular query by supplementing a query with additional keywords or managed property restrictions. This feature can be used to tune search results. The original query can be changed by modifying the query terms, adding additional terms, applying an XRANK formula to the query, and so on. For the Specter Group Floor Plans scenario, we are going to configure our query rule for Floor Plans with an action to add promoted results for a few beachfront properties. The publishing options for a query rule determine when the rule can be used. By default, a rule is active until it is deactivated. We can also configure a rule to be active during a certain time. A good application of this is when a rule is set up for commerce scenarios. For example, we can set up a rule to promote certain products to the top for sale during a particular period of time, such as the holiday period. In the Specter Group's scenario, we want to show beachfront properties in the summer period.
  • #41: fine-tuning the query to offer results that we think the users are looking for In SharePoint 2013, we are able to fine-tune search results based on the intent of the user's query. When users enter a query, we help them find what they are really looking for by fine-tuning the query and adding additional information to offer results that we think the users are looking for. Query rules can be created at various levels, in the Search Service application from Central Admin or at the site collection level. They are inherited by default, such that query rules created in the Search Service application are inherited by all the site collections and query rules created at the site collection level are inherited by all sites within the site collection. They can also be deactivated at a level to ensure the rule is never applied for queries submitted at that level. Condition: Set of conditions to match for this rule to fire (example: no conditions means the rule will be fired every time). If multiple conditions are specified, as long as one of the conditions is matched, then the query rule will be invoked. There are six types of conditions to choose from when creating a query rule: Query Matches Keyword Exactly: Query contains a specific word or words. Query Matches Dictionary Exactly: Query contains a word in a specific dictionary. Query Contains Action Term: Query contains an action word that matches a specific phrase or term set. Query More Common in Source: Query is common in a different source (like Videos Results Source). Result Type Commonly Clicked: Results include a common result type (like file type). Advanced Query Text Match: Advanced rule to match across a set of terms, dictionary, regular expression, and so on. For the Specter Group Floor Plans scenario, we are going to configure our query rule for Floor Plans with the condition to match keyword "Floor plans." Next, we need to configure actions to specify what happens when the query rule is applied. We can add multiple actions for each query rule. There are three options for actions: Assign promoted results: A promoted result is a result that appears at the top of the search results. This is similar to Best Bets in SharePoint 2010 or Visual Best Bets in FAST Search for SharePoint 2010. We can promote a result as a link or as a banner, which is a quick and easy way to visually present a certain result to users. Add result block: A result block is several search results displayed as a group. Similar to promoting a search result, we can promote a result block. A result block specifies an additional query to run and how to display the results A result block uses a result source, which can be results from the local search index or results from outside of SharePoint, such as Exchange or OpenSearch. Both search scopes and federated locations features from SharePoint 2010 have evolved into result sources. An example of a result source using OpenSearch is federating search results from Bing by providing the OpenSearch URL for its search service. An example of an out-of-the-box result source, Documents, returns all files from the local SharePoint index. While configuring a result block, this feature includes a full query designer for building and testing queries, similar to Query Builder in the Content Search web part. A result block can be configured to use specific custom display templates. Change ranked results by changing the query: Change the way SharePoint handles a particular query by supplementing a query with additional keywords or managed property restrictions. This feature can be used to tune search results. The original query can be changed by modifying the query terms, adding additional terms, applying an XRANK formula to the query, and so on. For the Specter Group Floor Plans scenario, we are going to configure our query rule for Floor Plans with an action to add promoted results for a few beachfront properties. The publishing options for a query rule determine when the rule can be used. By default, a rule is active until it is deactivated. We can also configure a rule to be active during a certain time. A good application of this is when a rule is set up for commerce scenarios. For example, we can set up a rule to promote certain products to the top for sale during a particular period of time, such as the holiday period. In the Specter Group's scenario, we want to show beachfront properties in the summer period.
  • #42: On the Add Query Rule page, in the General Information section, in the Rule name field, type Summer Promotion as the name of the new query rule (see Figure 9-62). Expand the Context section and note that the Floor Plan result source is selected by default. Going down the page, in the Query Conditions section, ensure Query Matches Keyword Exactly is selected in the drop-down list. Enter floor plans in the text box as the query phrase to match. In the Actions section, click the Add Promoted Result link to add promotion for a few beachfront properties. In the Add Promoted Result window, shown in Figure 9-63, select the Add new promoted result option. Enter Beachfront property in the Title field, then enter the URL for the promotion banner. Select the Render the URL as a banner instead of as a hyperlink check box to render the image as a banner. Click Save to continue. Continue down the page and expand the Publishing section. Ensure the Is Active check box is selected and enter date values for Start Date and End Date to make sure this query rule is only active during certain dates
  • #45: Add a result type to property type Add a query rule for “page” to query a specific result block, in our case a PixelMill Property with a title that contains “lakeside”
  • #48: Thank You! Don’t forget to check out my blog where you can download this presentation or the recording. Easiest way to get to the material I referenced