INTRODUCTION TO SHAREPOINT 2013 SEARCH
AND CREATING DYNAMIC CONTENT
MANAGEMENT SOLUTIONS
Ryan McIntyre
MCITP, MCPD
Directo...
• SharePoint 2013 Search Overview
– Changes from 2010
• Search Solutions
• OOTB Web Parts Review
• API
– Server side
– Cli...
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
Sh...
• Content Source
• Search Schema
– Now available through
site administration
• Query Rule
– Customization of returned
resu...
• Query Transforms
– Web Parts (3)
– Query Rule (2)
– Result Source (1)
• Result Source
– Scope +
– Federated +
• CSWP
COR...
• Result Type
– How to display types of
results
• Display Templates
– CSWP
– Hover Panel
– Refiner
– Search Results
CORE B...
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
...
EXECUTING QUERIES: REST
<d:RelevantResults m:type="Microsoft.Office.Server.Search.REST.RelevantResults">
<d:RowCount m:typ...
EXECUTING QUERIES: CSOM
ClientContext ctx = new ClientContext("http://sharepointonline/site");
var query = new KeywordQuer...
QUERY DEBUGGING
CSWP & DISPLAY TEMPLATE DEPLOYMENT
• <cringe>Design in UI</cringe>
• Export
• Visual Studio solution
– Create “host” page
– Add markup for CSWP from export
–...
• Create HTML file and verify results in UI
• Export JS
• Visual Studio solution
– Include JS
– Deploy to “_catalogs/maste...
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 Roa...
SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013
Upcoming SlideShare
Loading in …5
×

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

1,147 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,147
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Introduction slide
  • Conclusion slide
  • SharePint
  • SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013

    1. 1. INTRODUCTION TO SHAREPOINT 2013 SEARCH AND CREATING DYNAMIC CONTENT MANAGEMENT SOLUTIONS Ryan McIntyre MCITP, MCPD Director, Portals & Collaboration @ryanmcintyre
    2. 2. • SharePoint 2013 Search Overview – Changes from 2010 • Search Solutions • OOTB Web Parts Review • API – Server side – Client side • Packaging & Deployment LEAVE NOW…OR…
    3. 3. SCENARIOS
    4. 4. Powerful Engine 2013 SEARCH INTRO FAST Index FS4SP 2010 Search 2013 Search
    5. 5. 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
    6. 6. • 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
    7. 7. • Query Transforms – Web Parts (3) – Query Rule (2) – Result Source (1) • Result Source – Scope + – Federated + • CSWP CORE BUILDING BLOCKS
    8. 8. • Result Type – How to display types of results • Display Templates – CSWP – Hover Panel – Refiner – Search Results CORE BUILDING BLOCKS
    9. 9. SEARCH EXPERIENCE
    10. 10. SEARCH IN ACTION DEMO
    11. 11. EXECUTING QUERIES
    12. 12. EXECUTING QUERIES: KQL
    13. 13. 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
    14. 14. 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>
    15. 15. 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();
    16. 16. QUERY DEBUGGING
    17. 17. CSWP & DISPLAY TEMPLATE DEPLOYMENT
    18. 18. • <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
    19. 19. • 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
    20. 20. DEPLOYMENT DEMO
    21. 21. SCENARIOS
    22. 22. Ryan McIntyre ryan.mcintyre@neudesic.com http://blog.randomdust.com @ryanmcintyre 303-520-6337
    23. 23. • http://sp2013searchtool.codeplex.com/ RESOURCES
    24. 24. 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

    ×