Upload
mike-oryszak
View
248
Download
0
Embed Size (px)
DESCRIPTION
Display rich, dynamic content on your SharePoint site by leveraging the new content and search web parts on your site.
Citation preview
SPS Nashville 2014
Dynamic Content using SharePoint SearchSHAREPOINT SATURDAY NASHVILLE– APRIL 5, 2014
MIKE ORYSZAK
BLOG: WWW.MIKEORYSZAK.COMTWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014
About Me
Senior SharePoint Solution Architect w/ B&R Solutions
Microsoft SharePoint Server MVP (5x 2010-2014)
Leader for Triangle SharePoint User Group (TriSPUG)
Dev and Architect with MS stack since 1996
Working with SharePoint since 2002
Raleigh-Durham, NC
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
2
Feel free to tweet, post to Yammer and blog during sessions. Remember to follow @SPSNashville and tag #SPSNashville in your posts!
Gold Sponsors
Silver Sponsors
Thank You for being a part of SharePoint Saturday Nashville!
SPS Nashville 2014
Session Overview
Search Basics
Differences Between 2010 and 2013
Understanding Queries
Showing Dynamic Content
CloseoutTarget Audience:
Site Administrators and Power Users looking to maximize the effectiveness of their site.
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
4
5SPS Nashville 2014
Search BasicsDYNAMIC CONTENT USING SHAREPOINT SEARCH
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 6
Search BasicsCrawling
A scheduled activity that evaluates the content, meta-data and security.
IndexProcessed info that describes the crawled contentExtremely fast compared to querying source content
SecurityOnly items the user has access to will be returned
Referred to as “Security Trimming”
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 7
Search BasicsManaged PropertiesCan be used to query against a specific attribute
Examples:AuthorContentTypeCreatedByLastModifiedTimeFirstName
Version Differences:In 2010 and before, these have to be managed in the Search Service ApplicationIn 2013, these are automatically added when content is crawled
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 8
Search BasicsScopes and Query RulesOverview
Pre-set rules for filtering contentCan be defined and testing globally or at Site Collection levelFeature typically under utilized in most environments
Version Differences:In 2010
Referred to as ScopesDefault scopes include: All Sites, People, This Site
In 2013Referred to as Query RulesAdded ability to test the Query RulesAdded ability to target the Query Rules to content and audiences
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 9
Search BasicsContent ClassificationContentClass Overview
Not all content is the sameContentClass property helps to segment content by its fundamental type
Examples:SPSPeople – User ProfilesSTS_Site – Site CollectionSTS_Web – Site/WebSTS_list_[doccumentlibrary] * – ListSTS_listitem_[documentlibrary] * – List Item
* Note name in brackets can be replaced with template name
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
10SPS Nashville 2014
Understanding QueriesDYNAMIC CONTENT USING SHAREPOINT SEARCH
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 11
Understanding QueriesQuery Formatting
Limit – 255 charactersContent Classes - ContentClass:ValueManaged Properties - Property:ValueLogical Operators - AND, OR, NOT, +, -Relational Operators - <, >, <=, >=, <>Filename – filename:”name”File Type – filetype:valueWildcards – Property:Partial Value
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 12
Understanding QueriesSimple Query Examples
ContentClass:STS_SiteUses the content classes specification to return all of the Site Collections
Department:”IT”Would return all of the people with a value of IT in the Department user profile property
Filetype:PDFWould return all PDF documents
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 13
Understanding QueriesCompound Query Examples
ContentType:”Check Request” AND RequestStatus:”Completed”Returns results for items with a ContentType set to “Check Request” and a RequestStatus of “Completed”
contentclass:sts_listitem_announcements AND author:“Jane Doe" Would return all announcements authored by Jane Doe
ContentType:”Enrollment Form” AND Write>”6/1/2012” AND Filetype:PDFWould return all content classified as an Enrollment form, added or modified after 6/1/2012, and of the filetype
PDF.
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
16SPS Nashville 2014
Showing Dynamic ContentDYNAMIC CONTENT USING SHAREPOINT SEARCH
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 17
Showing Dynamic ContentOut of the Box Web PartsNew Web Parts with SharePoint 2013
Much stronger emphasis on using Search to power large, dynamic sites that can display content beyond the site collection
Web Part CategoriesContent RollupSearch-Driven ContentSearch
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 18
Showing Dynamic ContentContent RollupPrevious versions relied on the Content Query Web Part (CQWP)
Queried source content in sites directly, did not use search
Content Search Web Part introduced with 2013Uses Search to return resultsProvides interface for configuring and testing your queryProvides configuration for 3 views; List, List with Paging, or SlideshowProvides configuration for property mapping (identification)
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 19
Showing Dynamic ContentSearch-Driven ContentSearch-Driven Content Web Part Category added with 2013
These are extensions of the Content Search web part, providing an initial query to work fromExtensively use Result SourcesWeb Parts include:
Recommended ItemsRecently Changed ItemsPopular ItemsPicturesPagesItems Matching TagVideosWeb PagesWiki Pages
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 20
Showing Dynamic ContentSearchSearch Web Part Category
Search Results Web PartAvailable going back to 2001Updated for 2013 to include the query build/test formAvailable as part of the Standard CAL
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
21SPS Nashville 2014
Showing Dynamic Content
Demonstration
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
22SPS Nashville 2014
CloseoutDYNAMIC CONTENT USING SHAREPOINT SEARCH
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
23SPS Nashville 2014
Questions?
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK
SPS Nashville 2014 24
ResourcesKeyword Query Syntax Reference
http://technet.microsoft.com/en-us/subscriptions/index/ee558911(v=office.14).aspx
Property Restriction Keyword Querieshttp://technet.microsoft.com/en-us/subscriptions/ff394509.aspx
My Search Blog Postshttp://mikeoryszak.com/tag/search/
BLOG: WWW.MIKEORYSZAK.COM TWITTER: @NEXT_CONNECT LINKEDIN: HTTP://WWW.LINKEDIN.COM/IN/MICHAELORYSZAK