SlideShare a Scribd company logo
1 of 19
Leveraging SharePoint Search
In SharePoint 2013
Jameson Bozeman
Session Preview
Why Search
Out of the Box Wins
Queries – Getting your Items
Managed Properties – Getting your Content
Display Templates – Getting your Branding on
Custom Solutions
Why Search
2010 Scenario
Content Query Web parts
Limited Scope
Resource Hog
Hard to Modify Layout with XSLT
Why Search
2013 Scenario
Content Search Web parts
Minimized SQL Load
More control over Queries
Easy Control of Display using Client Side Rendering
Pull from across Site Collections
4 |
Out of the Box
5 |
DEMO
CSWP Concepts
6 |
Query
Get Items
Managed Properties
Usable Columns from Items
Display Templates
Make it Pretty
Queries – KQL Syntax
KQL Syntax Reference - https://msdn.microsoft.com/en-
us/library/office/ee558911.aspx
Token Reference - https://technet.microsoft.com/en-
us/library/jj683123.aspx
7 |
Result Sources
Benefits of Result Sources
Faster Queries
Less Server Load
Simplifies Advanced queries for Power Users
Better Change Control
8 |
Managed Properties
Site Column Name Crawled Property Managed Property
Item Number Ows_q_TEXT_ProductCat
alogItemNumber
ProductCatalogItemNumbe
rOWSText
Group Number Ows_q_TEXT_ProductCat
alogGroupNumber
ProductCatalogGroupNum
berOWSTEXT
Rollup Image ows_r_IMGE_PublishingR
ollupImage
PublishingImage
Language Tag Ows_q_CHCS_ProductCat
alogLanguageTag
ProductCatalogLanguageT
agOWSCHCS
Title Title Title
9 |
Crawled Property: Raw content extracted from crawls
Managed Property: Search web parts use to display content,
consists of 1 or more mapped Crawled Properties
Managed Properties
10 |
How do Managed Properties get created?
Managed Properties automatically created for Site
Columns
Column has Content in SharePoint List/Library
Full Crawl
Site Column Name Crawled Property Managed Property
Title Title Title
Item Number Ows_q_TEXT_Product
CatalogItemNumber
ProductCatalogItemNu
mberOWSText
Group Number Ows_q_TEXT_Product
CatalogGroupNumber
ProductCatalogGroupN
umberOWSTEXT
Rollup Image ows_r_IMGE_Publishin
gRollupImage
PublishingImage
Language Tag Ows_q_CHCS_Product
CatalogLanguageTag
ProductCatalogLanguag
eTagOWSCHCS
Managed Properties
11 |
Managed Properties are now set under Search
Schema in the Central Admin or Site Settings.
Searchable: Includes the content of the property in the
index, making it searchable as a query term alone.
Queryable: Property can be used in queries such as
Property:Value.
Retrievable: Property can be returned to the result set
for display or programmatic usage.
Refinable: Property can be returned in refiners.
Sortable: Properties can be used for sorting.
Continuous Crawl
12 |
Increased Freshness and Managed Property
Creation
Tip: Full Crawl is not required for Managed
Property creation if Reindex List is selected and
continuous crawl is turned on.
Manage Continuous Crawl Interval with Powershell
(default 15 mins)
$ssa = Get-SPEnterpriseSearchServiceApplication
$ssa.SetProperty("ContinuousCrawlInterval",5)
$ssa = Get-SPEnterpriseSearchServiceApplication $ssa.SetProperty("ContinuousCrawlInterval",n)
Display Templates
13 |
Display Templates
14 |
Creating Display Templates
Start with copy of other OOTB HTML display template
Always edit HTML Display Template SharePoint
generates the corresponding JS File automatically
CSWP Licensing
15 |
Content Search web parts are only included in
SharePoint Enterprise or SharePoint Online
Tips: Search Results (in all versions of SharePoint) web
parts can use most CSWP display templates.
Difference: Managed Properties need to be mapped out
in the display template, no easy mapping in Web Part
Settings.
Overriding Queries
16 |
Queries can be overridden for Search Web Parts
using Client Side Code, without reloading page!
Example:
Srch.ScriptApplicationManager.get_current().queryGroups['e77e5f8b-e52f-46d8-a04c-
7f9d83284858'].dataProvider.set_queryTemplate('ContentType:"Document"')
Srch.ScriptApplicationManager.get_current().queryGroups['e77e5f8b-e52f-46d8-a04c-
7f9d83284858'].dataProvider.issueQuery()
DEMO
Search Rest API
Example Rest URI:
http://server/_api/search/query?querytext=’SharePoint’
Retrieve search results in JSON Format:
data.d.query.PrimaryQueryResult.RelevantResults.Table.
Rows.results
17 |
When not to use Search
Pulling from a single location
Complex logic needed for filtering of items
Limited or failing SharePoint hardware
Need freshness of less than 5 minutes
18 |
Any Questions?

More Related Content

Similar to Leveraging SharePoint 2013 Search and CSR

Sharepoint Display templates
Sharepoint Display templatesSharepoint Display templates
Sharepoint Display templatesVijaySingh790398
 
SharePoint 2013 Search - Whats new for End Users
SharePoint 2013 Search - Whats new for End UsersSharePoint 2013 Search - Whats new for End Users
SharePoint 2013 Search - Whats new for End UsersMark Stokes
 
Iw411 migrating content by search from 2010 into 2013 - minified
Iw411   migrating content by search from 2010 into 2013 - minifiedIw411   migrating content by search from 2010 into 2013 - minified
Iw411 migrating content by search from 2010 into 2013 - minifiedPaul Hunt
 
#SPSPhilly search topology & optimization
#SPSPhilly search topology & optimization#SPSPhilly search topology & optimization
#SPSPhilly search topology & optimizationMike Maadarani
 
Test Automation Framework Development Introduction
Test Automation Framework Development IntroductionTest Automation Framework Development Introduction
Test Automation Framework Development IntroductionGanuka Yashantha
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015Pushkar Chivate
 
Introduction to Content Search Web Part
Introduction to Content Search Web PartIntroduction to Content Search Web Part
Introduction to Content Search Web PartHaaron Gonzalez
 
Session 2 branding and site development in SharePoint
Session 2   branding and site development in SharePointSession 2   branding and site development in SharePoint
Session 2 branding and site development in SharePointKhoa Quach
 
OSP206 What's New in SharePoint 2013 Search
OSP206 What's New in SharePoint 2013 SearchOSP206 What's New in SharePoint 2013 Search
OSP206 What's New in SharePoint 2013 SearchNick Hadlee
 
Ektron 8.5 RC - Search
Ektron 8.5 RC - SearchEktron 8.5 RC - Search
Ektron 8.5 RC - SearchBillCavaUs
 
Exploring the New Search in SharePoint 2013 - What can you do now?
Exploring the New Search in SharePoint 2013 - What can you do now?Exploring the New Search in SharePoint 2013 - What can you do now?
Exploring the New Search in SharePoint 2013 - What can you do now?Benjamin Niaulin
 
Implementing Site Search in CQ5 / AEM
Implementing Site Search in CQ5 / AEMImplementing Site Search in CQ5 / AEM
Implementing Site Search in CQ5 / AEMrtpaem
 
FAST for SharePoint Deep Dive
FAST for SharePoint Deep DiveFAST for SharePoint Deep Dive
FAST for SharePoint Deep Diveneil_richards
 
Test Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutionsTest Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutionsQuontra Solutions
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 
SharePoint 2010 Content Query Web Part
SharePoint 2010 Content Query Web PartSharePoint 2010 Content Query Web Part
SharePoint 2010 Content Query Web PartKim Frehe
 
Customizing SharePoint 2013 search display templates
Customizing SharePoint 2013 search display templatesCustomizing SharePoint 2013 search display templates
Customizing SharePoint 2013 search display templatesTony Testa
 
Graviton Work center Presentation
Graviton Work center PresentationGraviton Work center Presentation
Graviton Work center Presentationgravitonconsulting
 

Similar to Leveraging SharePoint 2013 Search and CSR (20)

Sharepoint Display templates
Sharepoint Display templatesSharepoint Display templates
Sharepoint Display templates
 
SharePoint 2013 Search - Whats new for End Users
SharePoint 2013 Search - Whats new for End UsersSharePoint 2013 Search - Whats new for End Users
SharePoint 2013 Search - Whats new for End Users
 
Iw411 migrating content by search from 2010 into 2013 - minified
Iw411   migrating content by search from 2010 into 2013 - minifiedIw411   migrating content by search from 2010 into 2013 - minified
Iw411 migrating content by search from 2010 into 2013 - minified
 
#SPSPhilly search topology & optimization
#SPSPhilly search topology & optimization#SPSPhilly search topology & optimization
#SPSPhilly search topology & optimization
 
Test Automation Framework Development Introduction
Test Automation Framework Development IntroductionTest Automation Framework Development Introduction
Test Automation Framework Development Introduction
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015
 
Introduction to Content Search Web Part
Introduction to Content Search Web PartIntroduction to Content Search Web Part
Introduction to Content Search Web Part
 
Session 2 branding and site development in SharePoint
Session 2   branding and site development in SharePointSession 2   branding and site development in SharePoint
Session 2 branding and site development in SharePoint
 
OSP206 What's New in SharePoint 2013 Search
OSP206 What's New in SharePoint 2013 SearchOSP206 What's New in SharePoint 2013 Search
OSP206 What's New in SharePoint 2013 Search
 
Ektron 8.5 RC - Search
Ektron 8.5 RC - SearchEktron 8.5 RC - Search
Ektron 8.5 RC - Search
 
Exploring the New Search in SharePoint 2013 - What can you do now?
Exploring the New Search in SharePoint 2013 - What can you do now?Exploring the New Search in SharePoint 2013 - What can you do now?
Exploring the New Search in SharePoint 2013 - What can you do now?
 
Implementing Site Search in CQ5 / AEM
Implementing Site Search in CQ5 / AEMImplementing Site Search in CQ5 / AEM
Implementing Site Search in CQ5 / AEM
 
FAST for SharePoint Deep Dive
FAST for SharePoint Deep DiveFAST for SharePoint Deep Dive
FAST for SharePoint Deep Dive
 
Test Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutionsTest Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutions
 
Drupal SEO
Drupal SEODrupal SEO
Drupal SEO
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Search
SearchSearch
Search
 
SharePoint 2010 Content Query Web Part
SharePoint 2010 Content Query Web PartSharePoint 2010 Content Query Web Part
SharePoint 2010 Content Query Web Part
 
Customizing SharePoint 2013 search display templates
Customizing SharePoint 2013 search display templatesCustomizing SharePoint 2013 search display templates
Customizing SharePoint 2013 search display templates
 
Graviton Work center Presentation
Graviton Work center PresentationGraviton Work center Presentation
Graviton Work center Presentation
 

More from Sparkhound Inc.

IT Strategy: Aligning IT and the Business
IT Strategy: Aligning IT and the BusinessIT Strategy: Aligning IT and the Business
IT Strategy: Aligning IT and the BusinessSparkhound Inc.
 
Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Sparkhound Inc.
 
SQL Server Reporting Services (SSRS) 101
 SQL Server Reporting Services (SSRS) 101 SQL Server Reporting Services (SSRS) 101
SQL Server Reporting Services (SSRS) 101Sparkhound Inc.
 
Dashboards for Everyone with Microsoft Power BI & Excel
Dashboards for Everyone with Microsoft Power BI &  ExcelDashboards for Everyone with Microsoft Power BI &  Excel
Dashboards for Everyone with Microsoft Power BI & ExcelSparkhound Inc.
 
Spinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSpinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSparkhound Inc.
 
Ensuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash ReportingEnsuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash ReportingSparkhound Inc.
 
Managing Customer Expectations
Managing Customer ExpectationsManaging Customer Expectations
Managing Customer ExpectationsSparkhound Inc.
 
Virtualize All The Things!
Virtualize All The Things!Virtualize All The Things!
Virtualize All The Things!Sparkhound Inc.
 
What is "Next Generation" Analytics? How does it fit with my Business Vision?
What is "Next Generation" Analytics? How does it fit with my Business Vision?What is "Next Generation" Analytics? How does it fit with my Business Vision?
What is "Next Generation" Analytics? How does it fit with my Business Vision?Sparkhound Inc.
 
What is the right SharePoint Cloud Strategy for My Business?
What is the right SharePoint Cloud Strategy for My Business? What is the right SharePoint Cloud Strategy for My Business?
What is the right SharePoint Cloud Strategy for My Business? Sparkhound Inc.
 
Identity Management for Office 365 and Microsoft Azure
Identity Management for Office 365 and Microsoft AzureIdentity Management for Office 365 and Microsoft Azure
Identity Management for Office 365 and Microsoft AzureSparkhound Inc.
 
Integrating the BCS with Search in SharePoint 2013
Integrating the BCS with Search in SharePoint 2013Integrating the BCS with Search in SharePoint 2013
Integrating the BCS with Search in SharePoint 2013Sparkhound Inc.
 
Htf2014 managing share point projects with agile and tfs andy
Htf2014 managing share point projects with agile and tfs   andyHtf2014 managing share point projects with agile and tfs   andy
Htf2014 managing share point projects with agile and tfs andySparkhound Inc.
 
SQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV'sSQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV'sSparkhound Inc.
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Sparkhound Inc.
 
PowerShell Fundamentals for SharePoint
PowerShell Fundamentals for SharePointPowerShell Fundamentals for SharePoint
PowerShell Fundamentals for SharePointSparkhound Inc.
 
Introduction to the SharePoint 2013 REST API
Introduction to the SharePoint 2013 REST APIIntroduction to the SharePoint 2013 REST API
Introduction to the SharePoint 2013 REST APISparkhound Inc.
 
Introduction to JSLink in 2013
Introduction to JSLink in 2013Introduction to JSLink in 2013
Introduction to JSLink in 2013Sparkhound Inc.
 
Cross-Platform Mobile Development with PCLs
Cross-Platform Mobile Development with PCLsCross-Platform Mobile Development with PCLs
Cross-Platform Mobile Development with PCLsSparkhound Inc.
 

More from Sparkhound Inc. (20)

IT Strategy: Aligning IT and the Business
IT Strategy: Aligning IT and the BusinessIT Strategy: Aligning IT and the Business
IT Strategy: Aligning IT and the Business
 
Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?
 
SQL Server Reporting Services (SSRS) 101
 SQL Server Reporting Services (SSRS) 101 SQL Server Reporting Services (SSRS) 101
SQL Server Reporting Services (SSRS) 101
 
Dashboards for Everyone with Microsoft Power BI & Excel
Dashboards for Everyone with Microsoft Power BI &  ExcelDashboards for Everyone with Microsoft Power BI &  Excel
Dashboards for Everyone with Microsoft Power BI & Excel
 
Spinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSpinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still Counts
 
Intro to AngularJS
Intro to AngularJS Intro to AngularJS
Intro to AngularJS
 
Ensuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash ReportingEnsuring Quality Mobile Apps with Testing and Crash Reporting
Ensuring Quality Mobile Apps with Testing and Crash Reporting
 
Managing Customer Expectations
Managing Customer ExpectationsManaging Customer Expectations
Managing Customer Expectations
 
Virtualize All The Things!
Virtualize All The Things!Virtualize All The Things!
Virtualize All The Things!
 
What is "Next Generation" Analytics? How does it fit with my Business Vision?
What is "Next Generation" Analytics? How does it fit with my Business Vision?What is "Next Generation" Analytics? How does it fit with my Business Vision?
What is "Next Generation" Analytics? How does it fit with my Business Vision?
 
What is the right SharePoint Cloud Strategy for My Business?
What is the right SharePoint Cloud Strategy for My Business? What is the right SharePoint Cloud Strategy for My Business?
What is the right SharePoint Cloud Strategy for My Business?
 
Identity Management for Office 365 and Microsoft Azure
Identity Management for Office 365 and Microsoft AzureIdentity Management for Office 365 and Microsoft Azure
Identity Management for Office 365 and Microsoft Azure
 
Integrating the BCS with Search in SharePoint 2013
Integrating the BCS with Search in SharePoint 2013Integrating the BCS with Search in SharePoint 2013
Integrating the BCS with Search in SharePoint 2013
 
Htf2014 managing share point projects with agile and tfs andy
Htf2014 managing share point projects with agile and tfs   andyHtf2014 managing share point projects with agile and tfs   andy
Htf2014 managing share point projects with agile and tfs andy
 
SQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV'sSQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV's
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
 
PowerShell Fundamentals for SharePoint
PowerShell Fundamentals for SharePointPowerShell Fundamentals for SharePoint
PowerShell Fundamentals for SharePoint
 
Introduction to the SharePoint 2013 REST API
Introduction to the SharePoint 2013 REST APIIntroduction to the SharePoint 2013 REST API
Introduction to the SharePoint 2013 REST API
 
Introduction to JSLink in 2013
Introduction to JSLink in 2013Introduction to JSLink in 2013
Introduction to JSLink in 2013
 
Cross-Platform Mobile Development with PCLs
Cross-Platform Mobile Development with PCLsCross-Platform Mobile Development with PCLs
Cross-Platform Mobile Development with PCLs
 

Recently uploaded

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 

Recently uploaded (20)

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

Leveraging SharePoint 2013 Search and CSR

  • 1. Leveraging SharePoint Search In SharePoint 2013 Jameson Bozeman
  • 2. Session Preview Why Search Out of the Box Wins Queries – Getting your Items Managed Properties – Getting your Content Display Templates – Getting your Branding on Custom Solutions
  • 3. Why Search 2010 Scenario Content Query Web parts Limited Scope Resource Hog Hard to Modify Layout with XSLT
  • 4. Why Search 2013 Scenario Content Search Web parts Minimized SQL Load More control over Queries Easy Control of Display using Client Side Rendering Pull from across Site Collections 4 |
  • 5. Out of the Box 5 | DEMO
  • 6. CSWP Concepts 6 | Query Get Items Managed Properties Usable Columns from Items Display Templates Make it Pretty
  • 7. Queries – KQL Syntax KQL Syntax Reference - https://msdn.microsoft.com/en- us/library/office/ee558911.aspx Token Reference - https://technet.microsoft.com/en- us/library/jj683123.aspx 7 |
  • 8. Result Sources Benefits of Result Sources Faster Queries Less Server Load Simplifies Advanced queries for Power Users Better Change Control 8 |
  • 9. Managed Properties Site Column Name Crawled Property Managed Property Item Number Ows_q_TEXT_ProductCat alogItemNumber ProductCatalogItemNumbe rOWSText Group Number Ows_q_TEXT_ProductCat alogGroupNumber ProductCatalogGroupNum berOWSTEXT Rollup Image ows_r_IMGE_PublishingR ollupImage PublishingImage Language Tag Ows_q_CHCS_ProductCat alogLanguageTag ProductCatalogLanguageT agOWSCHCS Title Title Title 9 | Crawled Property: Raw content extracted from crawls Managed Property: Search web parts use to display content, consists of 1 or more mapped Crawled Properties
  • 10. Managed Properties 10 | How do Managed Properties get created? Managed Properties automatically created for Site Columns Column has Content in SharePoint List/Library Full Crawl Site Column Name Crawled Property Managed Property Title Title Title Item Number Ows_q_TEXT_Product CatalogItemNumber ProductCatalogItemNu mberOWSText Group Number Ows_q_TEXT_Product CatalogGroupNumber ProductCatalogGroupN umberOWSTEXT Rollup Image ows_r_IMGE_Publishin gRollupImage PublishingImage Language Tag Ows_q_CHCS_Product CatalogLanguageTag ProductCatalogLanguag eTagOWSCHCS
  • 11. Managed Properties 11 | Managed Properties are now set under Search Schema in the Central Admin or Site Settings. Searchable: Includes the content of the property in the index, making it searchable as a query term alone. Queryable: Property can be used in queries such as Property:Value. Retrievable: Property can be returned to the result set for display or programmatic usage. Refinable: Property can be returned in refiners. Sortable: Properties can be used for sorting.
  • 12. Continuous Crawl 12 | Increased Freshness and Managed Property Creation Tip: Full Crawl is not required for Managed Property creation if Reindex List is selected and continuous crawl is turned on. Manage Continuous Crawl Interval with Powershell (default 15 mins) $ssa = Get-SPEnterpriseSearchServiceApplication $ssa.SetProperty("ContinuousCrawlInterval",5) $ssa = Get-SPEnterpriseSearchServiceApplication $ssa.SetProperty("ContinuousCrawlInterval",n)
  • 14. Display Templates 14 | Creating Display Templates Start with copy of other OOTB HTML display template Always edit HTML Display Template SharePoint generates the corresponding JS File automatically
  • 15. CSWP Licensing 15 | Content Search web parts are only included in SharePoint Enterprise or SharePoint Online Tips: Search Results (in all versions of SharePoint) web parts can use most CSWP display templates. Difference: Managed Properties need to be mapped out in the display template, no easy mapping in Web Part Settings.
  • 16. Overriding Queries 16 | Queries can be overridden for Search Web Parts using Client Side Code, without reloading page! Example: Srch.ScriptApplicationManager.get_current().queryGroups['e77e5f8b-e52f-46d8-a04c- 7f9d83284858'].dataProvider.set_queryTemplate('ContentType:"Document"') Srch.ScriptApplicationManager.get_current().queryGroups['e77e5f8b-e52f-46d8-a04c- 7f9d83284858'].dataProvider.issueQuery() DEMO
  • 17. Search Rest API Example Rest URI: http://server/_api/search/query?querytext=’SharePoint’ Retrieve search results in JSON Format: data.d.query.PrimaryQueryResult.RelevantResults.Table. Rows.results 17 |
  • 18. When not to use Search Pulling from a single location Complex logic needed for filtering of items Limited or failing SharePoint hardware Need freshness of less than 5 minutes 18 |

Editor's Notes

  1. https://spot.sparkhound.com/spdemo/Search/SitePages/CSWP.aspx
  2. https://spot.sparkhound.com/sites/SolutionCenter/SitePages/EA-SOPs.aspx
  3. Very complex conditions or pulling data from an outside source to build a query