SharePoint 2013 Search – A Developer’s Perspective

SharePoint 2013 Search – A Developer’s Perspective SharePoint 2013 Search – A Developer’s Perspective - Start

Added : 2016-06-30 Views :108K

Download Presentation

SharePoint 2013 Search – A Developer’s Perspective




Download Presentation - The PPT/PDF document "SharePoint 2013 Search – A Developer..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.



Presentations text content in SharePoint 2013 Search – A Developer’s Perspective

Slide1

SharePoint 2013 Search – A Developer’s Perspective

Ryan

McIntyre

MCITP

, MCPD

Director

, Portals & Collaboration

Slide2

SharePoint 2013 Search OverviewChanges from 2010Search SolutionsOOTB Web Parts ReviewAPIServer sideClient side

Leave Now…Or…

Slide3

Scenarios

Slide4

Powerful Engine

2013 Search Intro

Slide5

2013 Search Architecture

HTTPFile sharesSharePointUser profilesLotus Notes DocumentumExchange foldersCustom - BCS

SharePointSP AppsDevicesNon-SP UX

SearchAdmin

Content

UX

Crawl

Content

Processing

Index

Query

Processing

WFE

API

Analytics

Processing

FAST Search Index

Public API

Unit of scale/role boundary

Feeding

Chain

Index Core

Query Chain

Analytics Service

Slide6

Content SourceSearch SchemaNow available through site administrationQuery RuleCustomization of returned resultsCaptures Intent, composed ofQuery ConditionQuery ActionPublishing Options

Core Building Blocks

Slide7

Query TransformsWeb Parts (3)Query Rule (2)Result Source (1)Result SourceScope +Federated +CSWP

Core Building Blocks

Slide8

Result TypeHow to display types of resultsDisplay TemplatesCSWPHover PanelRefinerSearch Results

Core Building Blocks

Slide9

Search Experience

Query Rules – what’s “on sale” today?

Display Template – show an image with a description

Result Types – when content class = merchandise use my display template

Result Source – catalog of items

Recommendations – People who viewed this also viewed that

Personal Query History – what did you find before?

Refiners – used for faceted navigation

Slide10

Executing Queries

Slide11

Executing Queries: KQL

Slide12

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,Rank

'

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

'

Slide13

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

>

Slide14

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

();

Slide15

Query Debugging

Slide16

CSWP & Display Template Deployment

Slide17

<cringe>Design in UI</cringe>ExportVisual Studio solutionCreate “host” pageAdd markup for CSWP from exportProperly escape ‘{‘, ‘}’, and quotes in DataProviderJSON property

CSWP Development & Deployment

Slide18

Create HTML file and verify results in UIExport JSVisual Studio solutionInclude JSDeploy 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

Slide19

Deployment Demo

Slide20

Scenarios

Slide21

Ryan McIntyre

ryan.mcintyre@neudesic.com

http://blog.randomdust.com

@

ryanmcintyre

303-520-6337

Slide22

http://sp2013searchtool.codeplex.com/

Resources

Slide23


About DocSlides
DocSlides allows users to easily upload and share presentations, PDF documents, and images.Share your documents with the world , watch,share and upload any time you want. How can you benefit from using DocSlides? DocSlides consists documents from individuals and organizations on topics ranging from technology and business to travel, health, and education. Find and search for what interests you, and learn from people and more. You can also download DocSlides to read or reference later.
Youtube