Download presentation
Presentation is loading. Please wait.
Published byJanelle Searle Modified over 9 years ago
1
S HARE P OINT 2013 S EARCH – A D EVELOPER ’ S P ERSPECTIVE Ryan McIntyre MCITP, MCPD Director, Portals & Collaboration
2
SharePoint 2013 Search Overview –Changes from 2010 Search Solutions OOTB Web Parts Review API –Server side –Client side L EAVE N OW …O R …
3
S CENARIOS
4
Powerful Engine 2013 S EARCH I NTRO FAST Index FS4SP 2010 Search 2013 Search
5
2013 S EARCH A RCHITECTURE HTTP File shares SharePoint User profiles Lotus Notes Documentum Exchange folders Custom - BCS SharePoint SP Apps Devices Non-SP UX Search Admin Conte nt UX Crawl Content Processing Index Query ProcessingWFE Analytics Processing FAST Search Index Public API Unit of scale/role boundary
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 C ORE B UILDING B LOCKS
7
Query Transforms –Web Parts (3) –Query Rule (2) –Result Source (1) Result Source –Scope + –Federated + CSWP C ORE B UILDING B LOCKS
8
Result Type –How to display types of results Display Templates –CSWP –Hover Panel –Refiner –Search Results C ORE B UILDING B LOCKS
9
S EARCH E XPERIENCE
10
E XECUTING Q UERIES
11
E XECUTING Q UERIES : KQL
12
E XECUTING Q UERIES : REST
13
16 Rank 29.4688339233398 Edm.Decimal
14
E XECUTING Q UERIES : 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();
15
Q UERY D EBUGGING
16
CSWP & D ISPLAY T EMPLATE D EPLOYMENT
17
Design in UI Export Visual Studio solution –Create “host” page –Add markup for CSWP from export –Properly escape ‘{‘, ‘}’, and quotes in DataProviderJSON property CSWP D EVELOPMENT & D EPLOYMENT
18
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} D ISPLAY T EMPLATE D EVELOPMENT & D EPLOYMENT
19
D EPLOYMENT D EMO
20
S CENARIOS
21
Ryan McIntyre ryan.mcintyre@neudesic.com http://blog.randomdust.com @ryanmcintyre 303-520-6337
22
http://sp2013searchtool.codeplex.com/ R ESOURCES
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.