SharePoint User Group Meeting- SharePoint 2013 Search

27
Search: The Heart of SharePoint 2013 David Tappan, IOAP, MCITP:EA; MCP: SharePoint [email protected] June 26, 2013

Transcript of SharePoint User Group Meeting- SharePoint 2013 Search

Page 1: SharePoint User Group Meeting- SharePoint 2013 Search

Search: The Heart of

SharePoint 2013

David Tappan, IOAP, MCITP:EA; MCP: SharePoint

[email protected]

June 26, 2013

Page 2: SharePoint User Group Meeting- SharePoint 2013 Search

About C/D/H

C/D/H is a highly specialized consulting firm providing professional technology consulting services to clients throughout the Midwest from our offices in the Detroit area and Grand Rapids.

• Infrastructure • Collaboration • Project Management • Unified Communications • Mobility

Microsoft Gold Partner

SharePoint Planning Services (SDPS) Partner

Page 3: SharePoint User Group Meeting- SharePoint 2013 Search

About me

David Tappan Consultant MCITP:EA, MCTS: SharePoint, IOAp

[email protected]

Page 4: SharePoint User Group Meeting- SharePoint 2013 Search

Key Messages

1. Search is at the heart of many new features of SharePoint 2013

2. Query and content processing features combine the power of FAST–

and then some – with the ease of administration of SharePoint

Search.

3. Administration of much of search can be delegated—more so than in

SharePoint 2010.

4. Given the centrality of search in 2013, high availability is no longer an

option.

Page 5: SharePoint User Group Meeting- SharePoint 2013 Search

SharePoint 2013 Search-Dependent Features

• Content Search web part

• Cross-site publishing

• Social features (Newsfeed)

• e-Discovery

• My Tasks, Popular Items, etc.

• Usage Analytics

• Traditional search pages

– Search Results web part

Page 6: SharePoint User Group Meeting- SharePoint 2013 Search

Query Rules and Result Sources

Page 7: SharePoint User Group Meeting- SharePoint 2013 Search

The essence of Search

Document Document

Representation

Information

Need Query

Page 8: SharePoint User Group Meeting- SharePoint 2013 Search

The essence of Search

Document Document

Representation

Information

Need Query

What does the document mean?

Page 9: SharePoint User Group Meeting- SharePoint 2013 Search

The essence of Search

Document Document

Representation

Information

Need Query

What does the document mean? What does the user want?

Page 10: SharePoint User Group Meeting- SharePoint 2013 Search

The essence of Search

Document Document

Representation

Information

Need Query Match!

Content Processing Query Processing

What does the document mean? What does the user want?

Page 11: SharePoint User Group Meeting- SharePoint 2013 Search

SharePoint 2013 Search Components

Content Sources

User Profile

HTTPOther

File Share

SharePoint

Content Processing

Component

CrawlComponent

CrawlDatabase(s)

Analytics Processing

Component

AnalyticsDatabase

Index Component

LinkDatabase

Query Processing

Component

Event Store

Index Partition(s)

End User QueryOr

Process Initiated Query

Content Query

Page 12: SharePoint User Group Meeting- SharePoint 2013 Search

Query Processing Enhancements

• Analytics provides information about common queries and clickthroughs.

• Result sources replace search scopes, and take full advantage of query transforms

based on site, user and analytics to provide dynamic scopes.

• Query rules provide guidance about how to:

– promote relevant results (formerly Best Bets)

– surface result blocks that present the right properties in a way that makes sense visually

– Enhance the relevance of certain results

• Dictionaries used in query rules are maintained in Managed Metadata term sets.

– MMS dictionaries are not used in entity extraction, unfortunately—but that seems a good bet for

the future.

Page 13: SharePoint User Group Meeting- SharePoint 2013 Search

Query Rules

• The primary purpose of query rules is to enable search to better

understand and respond to likely user intent.

Page 14: SharePoint User Group Meeting- SharePoint 2013 Search

Query Rules Scope

• Query rules can be

created in four scopes.

–On Premise or Online:

• Site Collection or Site

–On Premise only:

• Farm

–Online only:

• Tenant

Page 15: SharePoint User Group Meeting- SharePoint 2013 Search

Query Rules

• Query rules have three elements:

–Conditions: When should the rule be

applied?

–Actions: What to do when the rule is

matched?

–Publishing: When should the rule be

active?

Page 16: SharePoint User Group Meeting- SharePoint 2013 Search

Query Rule Actions

• Add Promoted Result

• Add Promoted Block

• Add Ranked Block

• Change Ranked Results

Page 17: SharePoint User Group Meeting- SharePoint 2013 Search

Query transforms and query variables

• Query transforms used in:

–In a Web Part

–In a query rule

–In the result source

Page 18: SharePoint User Group Meeting- SharePoint 2013 Search

Query rules can be cumulative

searchTerms: cameras contenttype:T site:S result source: Asset Results sort: rank

searchTerms: cameras result source: default sort: rank

searchTerms: cameras result source: Local SharePoint sort: date

searchTerms: cameras contenttype:T result source: Asset Results sort: date

Page 19: SharePoint User Group Meeting- SharePoint 2013 Search

Query transforms and query variables

• Query transforms can include static properties

(the old “Append text to query”)

• OR they can use query variables:

–Any site or site collection property for the current site

–URL query string parameters

–Any user profile profile property for the current user

Page 20: SharePoint User Group Meeting- SharePoint 2013 Search

Result Sources and Query Rules

Query Rules Demonstration

Page 21: SharePoint User Group Meeting- SharePoint 2013 Search

Content search web part

• Used mostly for “search solutions”—no

query needed.

• Solves a lot of problems rolling up

content in SharePoint 2010:

– Rolling up content across site collections

without needing custom code

– Dynamic queries based on any property

– Separate queries/result sources per web

part.

– Formatting with HTML rather than XSLT

• Many built in web parts are based on

Content Search

Page 22: SharePoint User Group Meeting- SharePoint 2013 Search

Content Search Web Part

Demonstration

Page 23: SharePoint User Group Meeting- SharePoint 2013 Search

Overview of Cross-Site Publishing

1. Content is created in libraries and lists that are shared as catalogs

in the authoring site collection.

2. The search system crawls the content and builds the search index.

3. A user views a page on

a publishing site, which

triggers queries from

Search Web Parts.

4. Results are returned

from the search index,

and shown in Content

Search Web Parts on

the page.

5. Pages have friendly

URLs based on

Managed Metadata

terms that drive the

queries.

Overview of cross-site publishing in SharePoint Server 2013, http://technet.Microsoft.com

Page 24: SharePoint User Group Meeting- SharePoint 2013 Search

Search Fault Tolerance

Page 25: SharePoint User Group Meeting- SharePoint 2013 Search

“Small” Search Farm Architectures (~10 M items)

Page 26: SharePoint User Group Meeting- SharePoint 2013 Search

Search architecture changes via PowerShell only!

#clone the Active search topology

$ssa = Get-SPServiceApplication -Name “Search Service

Applicatio

$active = Get-SPEnterpriseSearchTopology -

SearchApplication $ssa -Active;\

$clone = New-SPEnterpriseSearchTopology -Clone -

SearchApplication $ssa -SearchTopology $active;

#Start the EnterPrise Search Component on wfe

$WFE01 = Get-SPEnterpriseSearchServiceInstance -Identity

“WFE01″;

Start-SPEnterpriseSearchServiceInstance -Identity $WFE01;

# wait for 5 mins to start the search services

sleep 5;

# Make sure the search service instance status online

before proceeding next steps

Get-SPEnterpriseSearchServiceInstance -Identity $WFE01;

# wait untill the status online before proceeding next

steps, once the status online

# Add index replica on wfe

New-SPEnterpriseSearchIndexComponent -SearchTopology

$clone -SearchServiceInstance $WFE01 -IndexPartition 0;

#Activate the cloned search topology

Set-SPEnterpriseSearchTopology -Identity $clone;

#At this point PowerShell command prompt freezes until

the search topology active. once it is active you can

refresh the Search service application and see the

topology changes;

#Repeat the same process for WFE02.