SharePoint Search Zero to Search Hero - SPSNL 2016

67
SharePoint Search Zero to Search Hero Ed Musters, SharePoint Architect, Infusion, Canada June 11, 2016

Transcript of SharePoint Search Zero to Search Hero - SPSNL 2016

Page 1: SharePoint Search Zero to Search Hero - SPSNL 2016

SharePoint Search Zero to Search HeroEd Musters, SharePoint Architect, Infusion, CanadaJune 11, 2016

Page 2: SharePoint Search Zero to Search Hero - SPSNL 2016

Thanks to our sponsors!

Page 3: SharePoint Search Zero to Search Hero - SPSNL 2016

Session Overview: Business Level 100I cannot tell you how many recent customers have simply indexed a universe of content with SharePoint Search OOTB (both SP and non-SP) and commented that “Search sucks” and “I can’t find anything relevant”. You will learn everything you need to know at this session to make use of very powerful OOTB configurable search functionality to “light up” your search experience and become the next Search Hero. No previous knowledge of SharePoint Search is assumed.

Page 4: SharePoint Search Zero to Search Hero - SPSNL 2016

Ed Musters, SharePoint MVPInfusion, Toronto Canada

Email : [email protected] : @TechEdTorontoSlideshare: http://www.slideshare.net/emusters

I am a SharePoint Architect for Infusion, and have been a featured speaker at many international conferences, SharePoint Saturdays, and user groups. Interesting fact about me is that while born in Canada, my parents were liberated by Canadians in WW II during operation "Market Garden". I am very proud to have been selected to speak to you! Ik kan nog steeds spreekt een beetje Nederlands!

Page 5: SharePoint Search Zero to Search Hero - SPSNL 2016

Along the way....

I will be bringing my family over to Holland for two weeks at the end of June.I will feature some pictures of places we plan to visit while we are here.On a piece of paper, write down your guesses during the presentation. I will collect at the end of the session and draw for a winner!First drawn paper with correct answers wins! (I will allow for one mistake only).Prize: Delicious box of Maple Syrup Cookies all the way from Canada!

Page 6: SharePoint Search Zero to Search Hero - SPSNL 2016

Agenda• How can you be a search hero?• Search Terminology• Authoritative Pages and Search Thesaurus• Search analytics reports• Your Very Own Search Center• Federated Search• Results Sources, Promoted Results and Results Blocks• Search “vertical” / tabs• Information Architecture and Search Refiners• Hybrid Search• More Information

Page 7: SharePoint Search Zero to Search Hero - SPSNL 2016

Side Note: The Demo EnvironmentI will be using the Office 365 Trial environment, pre-populated with “Contoso” content, as provisioned via the following link (if you are a Microsoft Partner): https://demos.microsoft.com/

Page 8: SharePoint Search Zero to Search Hero - SPSNL 2016

How can you be a search hero?

Page 9: SharePoint Search Zero to Search Hero - SPSNL 2016

How can you be a search hero?

Arm yourself with search knowledge super powers! Learn the art of the possible!Apply your transformative powers and make your users search experience shine!Learn:• What you can ask your SharePoint Administrators to do• What you can do yourself with your very own Search Center• All the basics before tackling more advanced concepts such as the

Content Search Web Part (which merits its own session!)

Page 10: SharePoint Search Zero to Search Hero - SPSNL 2016

Isn’t SharePoint Online / 2016 / 2013 Search supposed to be awesome and getting better with every version? Isn’t it the “killer app”?

Discussion!• Are you dissatisfied with your organizations “Enterprise

Search”?• If SharePoint is simply “indexing the universe of content”,

disappointing search results should not be surprising – why might that be?

Page 11: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Terminology

Page 12: SharePoint Search Zero to Search Hero - SPSNL 2016
Page 13: SharePoint Search Zero to Search Hero - SPSNL 2016

Search TerminologyResult Sources – A new or refined set of search results, previously known as scopes. You could limit results to a file extension (e.g. ppt*), a path (e.g. a sub-site / document library), a matching term in a term set, a content type (e.g. Proposals), etc. You could also bring in external / federated results sources (e.g. Bing or from Google Search Appliance) via OpenSearch.Query Rules – I term these “search business rules” where you anticipate what people are looking for, but defining a set of conditions and actions. A simple example is to look for a keyword (“News”) and direct someone to the News home page.

Page 14: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Administration in SharePoint Online

Page 15: SharePoint Search Zero to Search Hero - SPSNL 2016

Authoritative Pages and Search Thesaurus

Page 16: SharePoint Search Zero to Search Hero - SPSNL 2016

Authoritative PagesGiven a listing of all of your site collections, you have the opportunity to rank them in “levels” of “first, second, or third” in terms of search relevance. You don’t have to do them all, but you should do the ones you can.You can also promote relevant content that may be “buried” deep down in some site hierarchy – corporate, division, region, company, department, team...There is a special category called “sites to demote”. The classic example is an archive site you certainly would not want featured prominently in search results simply based on keywords typed in.These settings are global to the Office 365 tenant / SharePoint Farm.

Page 17: SharePoint Search Zero to Search Hero - SPSNL 2016

Authoritative Pages

Page 18: SharePoint Search Zero to Search Hero - SPSNL 2016

Search ThesaurusAvailable in SharePoint On Premise only! But exceptionally useful!A Thesaurus defines synonyms so that searching for one term or the other yields identical search results.All that is required is a simple CSV file in UTF-8 format, and is uploaded in Central Administration. Example file:

A good starting point are your corporate or industry specific acronyms (e.g. For the banking sector).

Key,Synonym,LanguageCOO,Chief Operating Officer,enChief Operating Officer,COO,en

Page 19: SharePoint Search Zero to Search Hero - SPSNL 2016

Search ThesaurusNote the hit highlighting includes search result both with “coo” and “chief operating officer”.

Page 20: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Analytics Reports

Page 21: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Analytics ReportsSearch Analytics reports will show you what people are looking for now, and is a primary input for creating new “search business rules”.At some frequency (e.g. Quarterly), request the “Top Queries By Month”, “Abandoned Queries By Month”, and “No Results Queries by Month”.An actual client example was employees searching for official company holidays – terms included “holiday”, “holidays”, “2016 calendar”, “statutory holidays”, “working calendar”. Together, they comprised a top search on the company intranet. But each term yielded very different search results – and frustration (and wasted time) on the part of the employee! We can resolve this, but the first step is knowing about it.

Page 22: SharePoint Search Zero to Search Hero - SPSNL 2016
Page 23: SharePoint Search Zero to Search Hero - SPSNL 2016

Your Very Own Search Center

Page 24: SharePoint Search Zero to Search Hero - SPSNL 2016

Your Very Own Search CenterYou may have a global / “Enterprise” search in your organization (e.g. from your corporate Intranet).It is definitely worth considering if you should have your very own Search Center for your site collection (a “/sites/Search” sub-site)

We will learn in this part of the presentation the Site Settings you can make to have a unique and specialized Search Center experience.

Site Settings

Page 25: SharePoint Search Zero to Search Hero - SPSNL 2016

Federated Search

Page 26: SharePoint Search Zero to Search Hero - SPSNL 2016

Federated SearchThis technique allows you query an “outside” search index that is compliant with OpenSearch protocol and include the search results within your search center.This is the SharePoint 2013 Hybrid Search approach to include SharePoint On Premise results in SharePoint Online and vice versa.We’ll be introducing Results Sources and Query Rules in this section.Microsoft’s Bing Search is OpenSearch compliant, so let’s use that as an example...

Page 27: SharePoint Search Zero to Search Hero - SPSNL 2016

Bing Federated SearchFirst we need a Results Source that “points” to Bing:

Page 28: SharePoint Search Zero to Search Hero - SPSNL 2016

Bing Federated SearchResults Source details

Bing Search URL

Page 29: SharePoint Search Zero to Search Hero - SPSNL 2016

Federated SearchNow we use a Query Rule to specify we’d like to show our Bing search in a Results Block:

Page 30: SharePoint Search Zero to Search Hero - SPSNL 2016

Google Search Appliance Federated SearchMore practically, clients wish to feature federated searches from their public “.com” site when searching on the Intranet. For example, the product information and brochures your customer is accessing are probably there.Many of our clients are using the Google Search Appliance (GSA) to index their “.com”, so this has to be the search index we query to get results from.One of our banking clients is BMO.com. If you perform a search for “RSP” (“Retirement Savings Plan”), it will reveal the GSA query endpoint:http://findit.bmo.com/search?proxystylesheet=bmo_json&site=bmo_en&client=bmo_en&output=xml_no_dtd&q=rsp&num=10&start=NaN&oe=utf8

Page 31: SharePoint Search Zero to Search Hero - SPSNL 2016

The XSLT File you Need!Here is the magical file (embedded into presentation) that you will need to provide to your GSA team!Note the parameter “proxystylesheet=bmo_json” on previous page. If you try the URL (in Chrome) you will see special “json” search results because of a specialized XSLT file the client providedYou will want them to implement this as “proxystylesheet=OpenSearch” or whatever, which will apply this XSLT to the results before returning them to SharePoint.

GSA_to_SP_OpenSearch.xslt

Page 32: SharePoint Search Zero to Search Hero - SPSNL 2016

GSA Federated!Following exact same approach as for Bing, you add the Results Source and Query Rule to get the GSA search results federated to SharePoint

Page 33: SharePoint Search Zero to Search Hero - SPSNL 2016

Results Sources, Promoted Results and Results BlocksOr: Results Sources and Query Rules, aka “Search Business Rules”

Page 34: SharePoint Search Zero to Search Hero - SPSNL 2016

Results SourcesLet’s look at another example of a custom Results Source:

Page 35: SharePoint Search Zero to Search Hero - SPSNL 2016

Promoted Results / Results BlocksLet’s look at some samples for Query Rules:

Page 36: SharePoint Search Zero to Search Hero - SPSNL 2016

News “Business Rules” Triggered

Page 37: SharePoint Search Zero to Search Hero - SPSNL 2016

Pop Quiz!How would you recommend to do for our previous example found via the search reports?

“An actual client example was employees searching for official company holidays – terms included “holiday”, “holidays”, “2016 calendar”, “statutory holidays”, “working calendar”. Together, they comprised a top search on the company intranet. But each term yielded very different search results – and frustration (and wasted time) on the part of the employee! ”

Page 38: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Verticals / Tabs

Page 39: SharePoint Search Zero to Search Hero - SPSNL 2016

Search Verticals / TabsYou can have additional tabs in your search center.One simple scenario is a “search scope”, limiting search results to a certain path / site / document library, or a specific type of content.Let’s set up a “News” tab that focuses only on Press Releases (the Results Source from the previous section).

Page 40: SharePoint Search Zero to Search Hero - SPSNL 2016

Create and Configure New Search Page In your Search Center, Add a New Page (e.g. “NewsResults”). Then on the search results web part, choose to “Edit Web Part”:

Page 41: SharePoint Search Zero to Search Hero - SPSNL 2016

Configure the Search Results Web PartClick the Change Query button. Change the “Select a Query” drop down to the appropriate Results Source (in our case Press Releases):

Page 42: SharePoint Search Zero to Search Hero - SPSNL 2016

Configure A New Search TabFrom Site Settings search navigation, add a new link to point to your search results page. That’s it! Your search will now have a new tab!

Page 43: SharePoint Search Zero to Search Hero - SPSNL 2016

New Search Tab – No Results SourceAnother example of Sales/Marketing tab. But this time we use Local SP Results and modify the Query Text with a Path parameter:

Page 44: SharePoint Search Zero to Search Hero - SPSNL 2016

Information Architecture and Search Refiners

Page 45: SharePoint Search Zero to Search Hero - SPSNL 2016

Information Architecture and Search RefinersA proper Information Architecture involving logical, physical, and navigation can be a daunting exercise.You can add your own custom search refiners to improve your search center experience.Start simple with one or two types of content.Create a Site Column that is mapped to a managed metadata term set.Add the Site Column to a document library and tag/classify your documents.Map “refinable fields” to your managed metadata and add Search Refiners to your search center.

Page 46: SharePoint Search Zero to Search Hero - SPSNL 2016

Sample Logical Information ArchitecturePhysical content isconnected togetherby tagging withvalues from hierarchical termsets.

Page 47: SharePoint Search Zero to Search Hero - SPSNL 2016

You can create your own term setsScoped to only your site collection, example “Product Group”

Page 48: SharePoint Search Zero to Search Hero - SPSNL 2016

Create Site Column to Map Term Set

Page 49: SharePoint Search Zero to Search Hero - SPSNL 2016

Add The Site Column To A Document Library

In my example, I used the Documents library under Departments -> Sales & Marketing -> Marketing Campaigns sub-site.Go to the library settings and add the Contoso Product site columns using “Add from existing site columns”.

Page 50: SharePoint Search Zero to Search Hero - SPSNL 2016

Tag Your Content!Note I did this quickly using the “Quick Edit” view:

Page 51: SharePoint Search Zero to Search Hero - SPSNL 2016

Crawled Property ->Managed PropertyWhen SharePoint crawls content that has been tagged with your term set, a “Crawled Property” is automatically generated.Notice the “Mapped to Property” is currently blank

Page 52: SharePoint Search Zero to Search Hero - SPSNL 2016

Map to Managed PropertyYou need to have a Managed Property – this is the part that is Searchable, Sortable, and (most importantly) refinable. It is recommended to use the SharePoint provided generic Managed Properties “RefinableString00”, “01”, “02”, etc. OOTB that you can use to map to your Crawled Properties.

Page 53: SharePoint Search Zero to Search Hero - SPSNL 2016

Map to Managed PropertyOn the Managed Property tab, search for “refinablestring”. Edit the next number that has not been assigned – in this case 02.

Page 54: SharePoint Search Zero to Search Hero - SPSNL 2016

Map to Managed PropertyYou can leave everything “as is”, just scroll down to the “Mappings” section. Click Add a Mapping and find and add your crawled property:

Page 55: SharePoint Search Zero to Search Hero - SPSNL 2016

Map to Managed PropertyYou should now see this filled on back on the Managed Property tab:

Page 56: SharePoint Search Zero to Search Hero - SPSNL 2016

Adding a Search RefinerOk! Now we are ready to add a new search refiner! Go to the search results page (e.g. go to Search Center and type in any search criteria, such as “test”).On the search results page, put the page in edit mode:

Page 57: SharePoint Search Zero to Search Hero - SPSNL 2016

Adding a Search RefinerIn that Navigation Zone, choose to edit the web part. In the web part properties, click on the Choose Refiners button:

Page 58: SharePoint Search Zero to Search Hero - SPSNL 2016

Adding a Search RefinerFrom availablerefiners, chooseRefinable String02 and Add.Change the Display Nameto Product

Page 59: SharePoint Search Zero to Search Hero - SPSNL 2016

Adding a Search RefinerSave and publish your page. Test an appropriate search – in my case “Q4”.Notice your new refiner!

Page 60: SharePoint Search Zero to Search Hero - SPSNL 2016

Hybrid Search

Page 61: SharePoint Search Zero to Search Hero - SPSNL 2016

Hybrid SearchHybrid Search is when SharePoint Online directly indexes your SharePoint On Premise.SharePoint Online becomes your one master search index.You can move search configuration from On Premise to Online.In one customer scenario, SharePoint On Premise search is also running for sensitive data (i.e. You can have both).You need SharePoint 2016 or a patch for SharePoint 2013.

Page 62: SharePoint Search Zero to Search Hero - SPSNL 2016

For More Information

Page 63: SharePoint Search Zero to Search Hero - SPSNL 2016

For More InformationSPSNL: Hybrid Search Deep Dive by Donald Hessing (MCSM) (11:15 a.m.)

SPSNL: Search Display Templates Tips and Tricks by Elio Struyf (MVP) (3:15 p.m.)

More about what the Content Search Web Part can do for you: Search for “Content Search Web Part Swiss Army Knife” for the material provided by Sean McDonough (MVP)

Page 64: SharePoint Search Zero to Search Hero - SPSNL 2016

Thanks for attendingYou officially now can be the next Search Hero for your organization!

Page 65: SharePoint Search Zero to Search Hero - SPSNL 2016

Picture Answers

Efteling Madurodam Spoorweg Museum Kinderdijk

Geithoorn BruggeValkenburg

Overloon WW2 Museum

Delft

Amsterdam Keukenhof

Page 66: SharePoint Search Zero to Search Hero - SPSNL 2016

Thanks to our sponsors!

Page 67: SharePoint Search Zero to Search Hero - SPSNL 2016

Rate this session!• http://eventsxd.com/download• Create Account • Search SharePoint• Rate Session!