Spca2014 search workshop niaulin

Post on 02-Jul-2015

520 views 7 download

Transcript of Spca2014 search workshop niaulin

Build a Search-Driven SharePoint 2013 Site from Start to Finish

@bniaulin

share-gate.com/blog

by Benjamin Niaulin, a SharePoint GEEK

IS THIS GOING TO BE A DEV SESSION?

BECAUSE I DON’T KNOW HOW TO CODE EITHER!

BUT I HAVE TO DELIVER SOLUTIONS IN SHAREPOINT AND THEY HAVE TO LOOK

GOOD TOO

NO

SO WHAT ARE YOU GOING TO

SHOW US IN SHAREPOINT?

TO FIND AND DISPLAY!

GOOD, BECAUSE I AM HAVING SOME

ISSUES IN SHAREPOINT

2010

Showing data from multiple lists/libraries at the same time

Change the date format in a list/library

Contextual Results

Changing the look of what we are seeing

Accessing information from other Site Collections

@bniaulin

Previous Solutions

Content Query Web Part

Search Coding

@bniaulin

Wonderful XSLT        <xsl:template  name="dvt_1.noKeyword">                  <span  class="srch-­‐description2">                          <xsl:choose>                                  <xsl:when  test="$IsFixedQuery">                                          <xsl:value-­‐of  select="$NoFixedQuery"  />                                  </xsl:when>                                  <xsl:otherwise>                                          <xsl:value-­‐of  select="$NoKeyword"  />                                  </xsl:otherwise>                          </xsl:choose>                  </span>          </xsl:template>                  <!-­‐-­‐  When  empty  result  set  is  returned  from  search  -­‐-­‐>          <xsl:template  name="dvt_1.empty">                  <div  class="srch-­‐results">                              <xsl:if  test="string-­‐length($SrchRSSLink)  &gt;  0  and  $ShowActionLinks">                                  <a  type="application/rss+xml"  href  ="{$SrchRSSLink}"  title="{$SrchRSSText}"  id="SRCHRSSL"  class="srch-­‐ext-­‐action-­‐margin">                                          <img  style="vertical-­‐align:  middle;"  border="0"  src="/_layouts/images/rss.gif"  alt=""/>                                          <xsl:text  disable-­‐output-­‐escaping="yes">&amp;nbsp;</xsl:text>                                          <xsl:value-­‐of  select="$SrchRSSText"/>  

@bniaulin

YES! I AM SAYING

THERE IS SOMETHING BETTER OUT

THERE

What’s our objective?

http://bniaulin.cloudapp.net

How do we get here?

DON’T GET TOO

EXCITED

FIRST…

What’s CHANGED

in SharePoint

2013?

SEARCH!Best of FAST Search algorithms

Document ThumbnailsQuery Language (FQL)

Architecture

Visual Best Bets User Segmentation

Metadata Extraction

Continuous Crawl

Analytics

Result SourcesResult Types

Query RulesDisplay Templates

Search Web Parts

Cross-Site Publishing

Product Catalog Search-Drive Sites

Updated Search Web Parts

Content Search

Display Templates

No XSLT

Search Results

Result Sources

Result Types

Refinement

Search Driven Sites

You’ll hear two very often

FAST &

Continuous Crawl

Continuous Crawl

The Real Continuous Crawl

•Only works on SharePoint Content Sources

•By default every 15min

Set-SPEnterpriseSearchCrawlContentSource

•Once indexed, content appears almost right away...like magic

•Lots of added pressure on the Server

Full Crawl / ContinuousOn-Demand

Crawled vs Managed Properties

Before we start ANYTHING with Search

Crawled Property: Content & Metadata extracted(document itself, url, Title, etc…)

Managed Property: Includes 1 or multiple mapped Crawled Properties and exists in the Search Index.

Managed Properties are what SharePoint uses to Display Content.

POP QUIZ!

If I plan to use a Search-related Web Part

to show my content

What kind of Property should I use?

MANAGED PROPERTY

Cross-Site Publishing &

Product Catalog

Prepare Site Collections

Site Templates Working Together

2

Site Columns, Content Types, Term Store, Lists

Prepare Products Lists

Let’s begin!

Assign Product List as Catalog

and so... the journey

begins

Connect Publishing to Catalog

#auspc #nzspc

CONNECT PUBLISHING TO CATALOG

Why? What are the benefits?

Let me show you instead

Create New Category & Item page

Content Search

Query Builder

What’s changed?

HTML CSS JS

NO XSLT

DISPLAY TEMPLATES

Looking Good!

The basics of Display Template

They are everywhere

The « container » 

Best way to reference custom files (JavaScript, CSS, etc…)

Control

Item

Controls what happens to each item rendered

through the query

Use Managed Properties to show

the content you want where you

want using HTML

Do not touch the JS

file

Finding

inspiration

line25.com

smashingmagazine.com

tympanus.net/codrops/

Result Sources

Formerly « Scopes »1 - A search provider or source URL to get search results from

2 - A protocol to use to get search results

3 - A query transform, which can narrow results from the given search provider or URL to a specified subset

Result Types

1 - One or more characteristics or conditions to compare each search

result against, such as the result source or content type of the

search result

2 - A display template to use for search results that meet the

conditions.

Query Rules

Similar to the old Best BetsInfluence the SharePoint Search Results

Actions: Promoted ResultsResult BlockChange Ranked Results by changing Query

APPLY LOOK & FEEL

ok so I may have prepared

this before

Good Work

@bniaulin

share-gate.com/blog

by Benjamin Niaulin, a SharePoint GEEKTHANK YOU!

LINKS

Over 30 helpful links to blogs and videos

http://en.share-gate.com/blog/learn-about-sharepoint-different-topics

Visit the link above and look through the recordings and blogs on Search, Display Templates and the Product Catalog