…how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors...

22

Transcript of …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors...

Page 1: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.
Page 2: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Build Smarter Search Experienceswith Result Sources and Query RulesPedro DeRose, Ph.D.Senior Program Manager, SharePoint

SPC143

Page 3: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Search VerticalsSpecial Data + Special Scenarios → Special Search

Page 4: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Today you’re going to learn……how to quickly build search verticals

Search ResultsWeb Part

ResultSource

Result TypesDisplay TemplateDisplay Template

Query Rules

BCS ConnectorsCustom SchemaRanking Models

ResultSource

Page 5: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Today you’re going to learn……how to respond intelligently to users with Query Rules

actingRecognize a product, promote the Knowledge Center

Recognize an image search, query for images of cameras

Recognize a top Video search, show videos of the Surface

understandingLearn more about our products

Find pictures of our cameras

What can the Surface do?

communicating

Page 6: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Building a Smart VerticalA Simple Search Vertical

Basic Query Rule Smarts

Query Transforms

Advanced Query Rules

Page 7: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Controlling the Experience

Add Promoted Result

Add Promoted Block

Add Ranked Block

Change Ranked Results

pro

mot

ed

ranke

d

Page 8: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Building a Smart VerticalA Simple Search Vertical

Basic Query Rule Smarts

Query Transforms

Advanced Query Rules

Page 9: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Query TransformsWeb Part Query Rule

Result Source

Page 10: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Query Transforms

searchTerms: camerasresult source: Local SharePoint Resultssort: rank…

Query Transform

searchTerms := {searchTerms} site:…

result source :=Asset Results

searchTerms: cameras site:…result source: Asset Resultssort: rank…

Page 11: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Query Transforms: Pop Quiz!

Search Web Part

{searchTerms}

result source := Local SharePointsort := date

Query Rule Change Results

{searchTerms} contenttype:T

result source := Asset Results

Asset Results Source

{searchTerms} site:S

sort := rank

searchTerms: cameras contenttype:T site:Sresult source: Asset Resultssort: rank

One-off Conditional Guaranteed

searchTerms: cameras result source: defaultsort: rank

searchTerms: cameras result source: Local SharePointsort: date

searchTerms: cameras contenttype:Tresult source: Asset Resultssort: date

Page 12: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Advanced Query Rules1. Interaction between Conditions and

ActionsBound Query Variables

2. Interaction between Query RulesOrderings and Stop/Continue

3. Interaction between Query Rules and Web PartsRouting to Content Search Web Parts

Page 13: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Bound Query Variables

Search Web Part

{searchboxquery} site:…

searchBoxQuery: camerassearchTerms: cameras

searchBoxQuery: camerassearchTerms: cameras site:…

Page 14: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

cameras

Bound Query VariablessearchBoxQuery: cameras

Query Rule Conditions

Matches Topic Exactly subjectTerms := all

Matches Action Term AssetType actionTerms := match subjectTerms := remainder

Query Rule Actions

Result Block with

{subjectTerms}

from Asset Results

subjectTerms: camerassearchBoxQuery: cameras

Page 15: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

tv

Bound Query VariablessearchBoxQuery: tv picture

Query Rule Conditions

Matches Topic Exactly subjectTerms := all

Matches Action Term AssetType actionTerms := match subjectTerms := remainder

Query Rule Actions

Result Block with

{subjectTerms}

from Asset Results

actionTerms: picturesubjectTerms: tvsearchBoxQuery: tv picture

Page 16: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

tv contenttype:picture

Bound Query VariablessearchBoxQuery: tv picture

Query Rule Conditions

Matches Topic Exactly subjectTerms := all

Matches Action Term AssetType actionTerms := match subjectTerms := remainder

Query Rule ActionsResult Block with

{subjectTerms} contenttype:{actionTerms}

from Asset Results

actionTerms: picturesubjectTerms: tvsearchBoxQuery: tv picture

Page 17: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

cameras

Bound Query VariablessearchBoxQuery: cameras

Query Rule Conditions

Matches Topic Exactly subjectTerms := all

Matches Action Term AssetType actionTerms := match subjectTerms := remainder

Query Rule ActionsResult Block with

{subjectTerms} contenttype:{actionTerms}

from Asset Results

subjectTerms: camerassearchBoxQuery: cameras

Result Block with

{subjectTerms} {? contenttype:{actionTerms} }

from Asset Results

Page 18: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Advanced Query Rules1. Interaction between Conditions and

ActionsBound Query Variables

2. Interaction between Query RulesOrderings and Stop/Continue

3. Interaction between Query Rules and Web PartsRouting to Content Search Web Parts

Page 19: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

SP2013 makes smart search verticals easy We created a search vertical that responds intelligently

…in a ridiculously short time…and without code

Web Part + Result SourceCreate

Respond Query Rules

Advertise

Search Navigation + Query Rules

Page 20: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Related Search Sessions @ SPCTue 9:00am - SPC063 - Customizing Search Experiences in SharePoint 2013Speaker: Kerem Yuceturk

Tue 3:15pm - SPC230 - Step by Step: Building Search Driven Applications with SharePoint 2013 - Speaker: Scot Hillier

Tue 1:45pm - SPC191 - People Search and Extensibility in SharePoint 2013Speakers: Mikael Svenson, Sana Khan

Wed 5:00pm - SPC145 - Optimize Search Relevance in SharePoint 2013Speakers: Jan Inge Bergseth, Victor Poznanski

Page 21: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

Evaluate this session now on MySPC using your laptop or mobile device: http://myspc.sharepointconference.com

MySPC

Page 22: …how to quickly build search verticals Result Types Display Template Query Rules BCS Connectors Custom Schema Ranking Models.

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.