SlideShare a Scribd company logo
1 of 25
INTRODUCTION TO SHAREPOINT 2013 SEARCH
AND CREATING DYNAMIC CONTENT
MANAGEMENT SOLUTIONS
Ryan McIntyre
MCITP, MCPD
Director, Portals & Collaboration
@ryanmcintyre
• SharePoint 2013 Search Overview
– Changes from 2010
• Search Solutions
• OOTB Web Parts Review
• API
– Server side
– Client side
• Packaging & Deployment
LEAVE NOW…OR…
SCENARIOS
Powerful Engine
2013 SEARCH INTRO
FAST
Index FS4SP
2010
Search
2013
Search
2013 SEARCH ARCHITECTURE
HTTP
File shares
SharePoint
User profiles
Lotus Notes
Documentum
Exchange folders
Custom - BCS
SharePoint
SP Apps
Devices
Non-SP UX
Public API
Unit of scale/role boundary
• Content Source
• Search Schema
– Now available through
site administration
• Query Rule
– Customization of returned
results
– Captures
Intent, composed of
• Query Condition
• Query Action
• Publishing Options
CORE BUILDING BLOCKS
• Query Transforms
– Web Parts (3)
– Query Rule (2)
– Result Source (1)
• Result Source
– Scope +
– Federated +
• CSWP
CORE BUILDING BLOCKS
• Result Type
– How to display types of
results
• Display Templates
– CSWP
– Hover Panel
– Refiner
– Search Results
CORE BUILDING BLOCKS
SEARCH EXPERIENCE
SEARCH IN ACTION DEMO
EXECUTING QUERIES
EXECUTING QUERIES: KQL
EXECUTING QUERIES: REST
 Keywords
 http://server/site/_api/search/query?querytext='{KQL Query}‘
 Selecting Properties
 http://server/site/_api/search/query?querytext='test'&selectproperties='Title,Ran
k'
 Sorting
 http://server/site/_api/search/query?querytext='test'&sortlist='LastModifiedTime:
descending'
 http://server/site/_api/search/query?querytext='test'&sortlist='LastModifiedTime:
descending,Rank:ascending
EXECUTING QUERIES: REST
<d:RelevantResults m:type="Microsoft.Office.Server.Search.REST.RelevantResults">
<d:RowCount m:type="Edm.Int32">16</d:RowCount>
<d:Rows m:type="SP.SimpleDataTable">
<d:Rows>
<d:element m:type="SP.SimpleDataRow">
<d:Cells>
<d:element m:type="SP.KeyValue">
<d:Key xml:space="preserve">Rank</d:Key>
<d:Value xml:space="preserve">29.4688339233398</d:Value>
<d:ValueType xml:space="preserve">Edm.Decimal</d:ValueType>
</d:element>
EXECUTING QUERIES: CSOM
ClientContext ctx = new ClientContext("http://sharepointonline/site");
var query = new KeywordQuery(ctx, ctx.Site);
query.QueryText = "Search terms";
query.ResultTypes = ResultType.RelevantResults;
query.Id = Guid.NewGuid();
var queries = new KeywordQuery[1];
queries[0] = query;
SearchExecutor searchExecutor = new SearchExecutor(ctx);
var rcc = searchExecutor.ExecuteQueries(queries);
ctx.ExecuteQuery();
QUERY DEBUGGING
CSWP & DISPLAY TEMPLATE DEPLOYMENT
• <cringe>Design in UI</cringe>
• Export
• Visual Studio solution
– Create “host” page
– Add markup for CSWP from export
– Properly escape „{„, „}‟, and quotes in DataProviderJSON property
CSWP DEVELOPMENT & DEPLOYMENT
• Create HTML file and verify results in UI
• Export JS
• Visual Studio solution
– Include JS
– Deploy to “_catalogs/masterpage/Display Templates/Content
Web Parts”
– {Optionally, deploy HTML (not JS) and programmatically update
file post-deployment to generate JS}
DISPLAY TEMPLATE DEVELOPMENT &
DEPLOYMENT
DEPLOYMENT DEMO
SCENARIOS
Ryan McIntyre
ryan.mcintyre@neudesic.com
http://blog.randomdust.com
@ryanmcintyre
303-520-6337
• http://sp2013searchtool.codeplex.com/
RESOURCES
Join us right after the event at the Firehouse Grill!
Socialize and unwind after our day of learning.
1765 E. Bayshore Road
East Palo Alto, CA

More Related Content

Viewers also liked

Viewers also liked (6)

Entreave for Recruiters
Entreave for RecruitersEntreave for Recruiters
Entreave for Recruiters
 
Presentation2
Presentation2Presentation2
Presentation2
 
My photo analysis
My photo analysisMy photo analysis
My photo analysis
 
Revisão portugues
Revisão  portuguesRevisão  portugues
Revisão portugues
 
Introduction to SharePoint 2013 Apps
Introduction to SharePoint 2013 AppsIntroduction to SharePoint 2013 Apps
Introduction to SharePoint 2013 Apps
 
Introducing Office Web Apps as a Tool for Developing Content Rich Applications
Introducing Office Web Apps as a Tool for Developing Content Rich ApplicationsIntroducing Office Web Apps as a Tool for Developing Content Rich Applications
Introducing Office Web Apps as a Tool for Developing Content Rich Applications
 

Similar to SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013

Similar to SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013 (20)

SharePoint REST vs CSOM
SharePoint REST vs CSOMSharePoint REST vs CSOM
SharePoint REST vs CSOM
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConThe SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
 
SharePoint Search Enrichment
SharePoint Search EnrichmentSharePoint Search Enrichment
SharePoint Search Enrichment
 
(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide
 
Basic SharePoint search
Basic SharePoint searchBasic SharePoint search
Basic SharePoint search
 
Search-Driven Applications with SharePoint 2013 (#SBSBE16)
Search-Driven Applications with SharePoint 2013 (#SBSBE16)Search-Driven Applications with SharePoint 2013 (#SBSBE16)
Search-Driven Applications with SharePoint 2013 (#SBSBE16)
 
Spsbe16 searchdrivenapplications-150419151108-conversion-gate01
Spsbe16 searchdrivenapplications-150419151108-conversion-gate01Spsbe16 searchdrivenapplications-150419151108-conversion-gate01
Spsbe16 searchdrivenapplications-150419151108-conversion-gate01
 
Building Search Driven Applications
Building Search Driven ApplicationsBuilding Search Driven Applications
Building Search Driven Applications
 
SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013 SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013
 
Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...
Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...
Exam 70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions Le...
 
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
 
Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016
 
Sps mad2019 es el momento, empieza a desarrollar para microsoft teams
Sps mad2019   es el momento, empieza a desarrollar para microsoft teams Sps mad2019   es el momento, empieza a desarrollar para microsoft teams
Sps mad2019 es el momento, empieza a desarrollar para microsoft teams
 
Utilizing Microsoft Graph API and Office 365 Management Activity API during s...
Utilizing Microsoft Graph API and Office 365 Management Activity API during s...Utilizing Microsoft Graph API and Office 365 Management Activity API during s...
Utilizing Microsoft Graph API and Office 365 Management Activity API during s...
 
FAST for SharePoint Deep Dive
FAST for SharePoint Deep DiveFAST for SharePoint Deep Dive
FAST for SharePoint Deep Dive
 
Hard learned CSOM and REST tips
Hard learned CSOM and REST tipsHard learned CSOM and REST tips
Hard learned CSOM and REST tips
 
MSFT Dumaguete 061616 - Building High Performance Apps
MSFT Dumaguete 061616 - Building High Performance AppsMSFT Dumaguete 061616 - Building High Performance Apps
MSFT Dumaguete 061616 - Building High Performance Apps
 
Discover Your IT Career Path
Discover Your IT Career PathDiscover Your IT Career Path
Discover Your IT Career Path
 
SharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based SolutionsSharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based Solutions
 

Recently uploaded

+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...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+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...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013

  • 1. INTRODUCTION TO SHAREPOINT 2013 SEARCH AND CREATING DYNAMIC CONTENT MANAGEMENT SOLUTIONS Ryan McIntyre MCITP, MCPD Director, Portals & Collaboration @ryanmcintyre
  • 2.
  • 3. • SharePoint 2013 Search Overview – Changes from 2010 • Search Solutions • OOTB Web Parts Review • API – Server side – Client side • Packaging & Deployment LEAVE NOW…OR…
  • 5. Powerful Engine 2013 SEARCH INTRO FAST Index FS4SP 2010 Search 2013 Search
  • 6. 2013 SEARCH ARCHITECTURE HTTP File shares SharePoint User profiles Lotus Notes Documentum Exchange folders Custom - BCS SharePoint SP Apps Devices Non-SP UX Public API Unit of scale/role boundary
  • 7. • Content Source • Search Schema – Now available through site administration • Query Rule – Customization of returned results – Captures Intent, composed of • Query Condition • Query Action • Publishing Options CORE BUILDING BLOCKS
  • 8. • Query Transforms – Web Parts (3) – Query Rule (2) – Result Source (1) • Result Source – Scope + – Federated + • CSWP CORE BUILDING BLOCKS
  • 9. • Result Type – How to display types of results • Display Templates – CSWP – Hover Panel – Refiner – Search Results CORE BUILDING BLOCKS
  • 14. EXECUTING QUERIES: REST  Keywords  http://server/site/_api/search/query?querytext='{KQL Query}‘  Selecting Properties  http://server/site/_api/search/query?querytext='test'&selectproperties='Title,Ran k'  Sorting  http://server/site/_api/search/query?querytext='test'&sortlist='LastModifiedTime: descending'  http://server/site/_api/search/query?querytext='test'&sortlist='LastModifiedTime: descending,Rank:ascending
  • 15. EXECUTING QUERIES: REST <d:RelevantResults m:type="Microsoft.Office.Server.Search.REST.RelevantResults"> <d:RowCount m:type="Edm.Int32">16</d:RowCount> <d:Rows m:type="SP.SimpleDataTable"> <d:Rows> <d:element m:type="SP.SimpleDataRow"> <d:Cells> <d:element m:type="SP.KeyValue"> <d:Key xml:space="preserve">Rank</d:Key> <d:Value xml:space="preserve">29.4688339233398</d:Value> <d:ValueType xml:space="preserve">Edm.Decimal</d:ValueType> </d:element>
  • 16. EXECUTING QUERIES: CSOM ClientContext ctx = new ClientContext("http://sharepointonline/site"); var query = new KeywordQuery(ctx, ctx.Site); query.QueryText = "Search terms"; query.ResultTypes = ResultType.RelevantResults; query.Id = Guid.NewGuid(); var queries = new KeywordQuery[1]; queries[0] = query; SearchExecutor searchExecutor = new SearchExecutor(ctx); var rcc = searchExecutor.ExecuteQueries(queries); ctx.ExecuteQuery();
  • 18. CSWP & DISPLAY TEMPLATE DEPLOYMENT
  • 19. • <cringe>Design in UI</cringe> • Export • Visual Studio solution – Create “host” page – Add markup for CSWP from export – Properly escape „{„, „}‟, and quotes in DataProviderJSON property CSWP DEVELOPMENT & DEPLOYMENT
  • 20. • Create HTML file and verify results in UI • Export JS • Visual Studio solution – Include JS – Deploy to “_catalogs/masterpage/Display Templates/Content Web Parts” – {Optionally, deploy HTML (not JS) and programmatically update file post-deployment to generate JS} DISPLAY TEMPLATE DEVELOPMENT & DEPLOYMENT
  • 25. Join us right after the event at the Firehouse Grill! Socialize and unwind after our day of learning. 1765 E. Bayshore Road East Palo Alto, CA

Editor's Notes

  1. Introduction slide
  2. Conclusion slide
  3. SharePint