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…
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
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