sharepoint search zero to search hero

62
SHAREPOINT SEARCH ZERO TO SEARCH HERO Ed Musters, SharePoint MVP, Infusion [email protected] @TechEdToronto Slides available now at: http :// slideshare.net/emusters

Upload: ed-musters

Post on 18-Feb-2017

339 views

Category:

Software


2 download

TRANSCRIPT

SHAREPOINT SEARCH ZERO TO SEARCH HERO

Ed Musters, SharePoint MVP, [email protected]@TechEdToronto

Slides available now at:http://slideshare.net/emusters

GOLD

THANK YOU SPONSORS!

BRON

ZE

/ PRI

ZES

SILV

ER

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.

Ed Musters, SharePoint MVPInfusion, Toronto Canada

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

Ed is a SharePoint MVP and a SharePoint Architect for Infusion. He has instructed the exclusive Critical Path SharePoint courses for many years. Ed is an author for two books on SharePoint development. He has been a featured speaker at many international conferences, SharePoint Saturdays, and user groups. Ed would very much enjoy sharing his real world expertise with you!

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

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/

How can you be a search hero?

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!)

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?

Search Terminology

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.

Search Administration in SharePoint Online

Authoritative Pages and Search Thesaurus

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.

Authoritative Pages

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

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

Search Analytics Reports

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.

Your Very Own Search Center

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

Federated Search

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...

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

Bing Federated SearchResults Source details

Bing Search URL

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

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

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

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

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

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

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

News “Business Rules” Triggered

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! ”

Search Verticals / Tabs

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).

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”:

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):

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!

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:

Information Architecture and Search Refiners

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.

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

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

Create Site Column to Map Term Set

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”.

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

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

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.

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

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:

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

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:

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

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

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

Hybrid Search

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.

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

Thank you!Toronto Enterprise Collaboration User GroupChange Management, Governance, SharePoint, Office 365, Yammer, PowerBI, etchttp://www.meetup.com/TSPBUG/Toronto SharePoint Users Grouphttp://tspug.com/

THANK YOU & See you next year!

Join us for SharePint after the event @ 5:30pm6982 Financial Dr. and don’t forget to submit feedback after each session for your chance to win great prizes at the end of the day! https://www.surveymonkey.com/r/spstoronto2016