460 likes | 753 Vues
SharePoint Search: Introducing the new search service. Brian Caauwe – Senior SharePoint Consultant. September 28th, 2013. Session Agenda. Editions Components Administration Customizations. Who am I?. Brian Caauwe SharePoint Consultant & Speaker Email: bcaauwe@avtex.com
E N D
SharePoint Search: Introducing the new search service Brian Caauwe – Senior SharePoint Consultant September 28th, 2013
Session Agenda • Editions • Components • Administration • Customizations
Who am I? • Brian Caauwe • SharePoint Consultant & Speaker • Email: bcaauwe@avtex.com • Twitter: @bcaauwe • Blog: http://blog.avtex.com/author/bcaauwe • Technical Editor • Professional SharePoint 2013 Administration • Certifications • MCM: SharePoint Server 2010
Thank You! For Sponsoring the IT Pro/Admin Track
Quick Poll • SharePoint Version • 2007 – WSS, MOSS • 2010 – SPF, Server, FAST • 2013 • Work Roles • SharePoint Administrator • SharePoint Developer • Business User • Other
Search Editions • SharePoint Foundation 2013 • SharePoint Server 2013 • Standard • Enterprise • ALL editions now use the SAME search service • osearch15 • TechNet Reference: http://technet.microsoft.com/en-us/library/cb36484c-0e8f-480e-be88-5daa8bf2d47d#bkmk_SearchfeaturesOnPrem
Search Editions SharePoint Foundation 2013 • Now uses enterprise search engine • Can now administer service • Content Sources • Crawl Schedule • etc • Limited scalability
Search Editions SharePoint Server 2013 – Standard • Scalable components • People Search • Promoted Results • Customized Sorting • Graphical Refiners • Search Server web parts
Search Editions SharePoint Server 2013 – Enterprise • Content by Search web part • Entity Extraction • Content Processing Enrichment • Video Search • Item Recommendations
Search Components Logical Architecture Index Query Processing Crawl Content Processing WFE Analytics Processing Crawl Links Event Store Administration SearchAdmin Analytics Reporting
Administration Search Components Administration Component Component • Monitors states of all other components • Managed Topology Changes • Finally scalable • Only one active at a time Database • Search Admin Database • Configuration data • Topology • Crawl, Query rules • Property Mappings • Content Sources, Crawl Schedules • Analytics Settings
Crawl Search Components Crawl Component Component • Performs the crawling • Invokes connectors / protocol handlers • SharePoint content • Business Applications • File Shares • More… • Delivers crawled items AND metadata to Content Processing Component • Communicates with ALL crawl databases Database(s) • Crawl Database • Crawl history • Information on crawled items • Scale out for each 20 million items crawled • Host distribution • 2010 Handled by Host URL • 2013 Handled by Content DB
Content Processing Search Components Content Processing Component (CPC) Component • Handles document parsing and iFilters • Extracts data for Document Parsing and Property Mappings • Performs linguistic processing • Entity Extraction • Generates phonetic name variations (people search) • Sends items to the Index Component Database(s) • Link Database • Receives information about links and URLs from CPC • Stores unprocessed information for use in analytics • Information on search clicks • # of times people pick on results • Scale out for each 20 million items crawled • Scale out for each 100 million queries / year
Analytics Processing Search Components Analytics Processing Component Component • Performs Search Analytics • Pulls information from Links DB • Stores information for search reports • Performs Usage Analytics • Pulls information from event store • Generates recommendations, usage and statistics reports • Sends results to the content processing component to be pushed to the index Database(s) • Analytics Reporting Database • Results of usage analytics • Statistics information from the analyses • Scale out when size > 200 GB
Index Search Components Index Component Component • Logical representation of an index replica • Mapped one-to-one to an index replica • Each partition holds one or more index replicas • Receives processed items from content processing component • Receives queries from query processing component and writes to index • Returns result sets to the query processing component On File index • Located ON SharePoint servers housing index component • Index update groups • Default (majority of managed properties) • Security (ACL managed property) • Link (managed properties related to link structure) • Usage (managed properties related to usage data) • People (managed properties related to people search) • Full-text index • Contains text from searchable managed properties • Multiple replicas / server currently UNSUPPORTED
Query Processing Search Components Query Processing Component Component • Analyses and processes queries • Decides which query rules are applicable • Submits query to index component • Determines which index partition to send query to • Performs pre processing • Receives result sets from index component • Performs post processing • Sends result set back to requestor • Performs linguistic processing at query time • Word breaking, stemming, spellchecking, thesaurus
Search Administration Mapping Terminology from 2010 to 2013
Search Administration Search Topology Central Administration • View topology • No more options… PowerShell • Manage the search service instances • Manage topology and components
Search Administration Search Topology – PowerShell ## Get Service ## $svc = Get-SPEnterpriseSearchServiceInstance-Identity “servername” ## Start Service ## Start-SPEnterpriseSearchServiceInstance-Identity $svc ## Get Search Service Application ## $ssa= Get-SPEnterpriseSearchServiceApplication ## Get Active Topology ## $activeTop= Get-SPEnterpriseSearchTopology-SearchApplication$ssa-Active ## Clone Topology ## $clone = New-SPEnterpriseSearchTopology-SearchApplication$ssa-SearchTopology$activeTop-Clone
Search Administration Search Topology – PowerShell ## New Administration Component ## $adminComp= New-SPEnterpriseSearchAdminComponent-SearchTopology$clone -SearchServiceInstance$svc ## New Analytics Processing Component ## $apc= New-SPEnterpriseSearchAnalyticsProcessingComponent-SearchTopology$clone -SearchServiceInstance$svc ## New Crawl Component ## $crawlComp= New-SPEnterpriseSearchCrawlComponent-SearchTopology$clone -SearchServiceInstance$svc ## New Content Processing Component ## $cpc= New-SPEnterpriseSearchContentProcessingComponent-SearchTopology$clone -SearchServiceInstance$svc
Search Administration Search Topology – PowerShell ## New Query Processing Component ## $qpc= New-SPEnterpriseSearchQueryProcessingComponent-SearchTopology$clone -SearchServiceInstance$svc ## New Index Partition / Replica ## $idx= New-SPEnterpriseSearchIndexComponent-SearchTopology$clone -SearchServiceInstance$svc -IndexPartition0–RootDirectory“D:\SP\SearchIndex” ## Activate New Topology ## $clone.Activate()
Search Administration Search Topology Topology Recap • Ensure service is “online” before using in search topology • To clone topology, use New-SPEnterpriseSearchTopology -Clone • Otherwise you won’t have component ID’s • Index Component • When specifying a root directory, it MUST exist but be empty • Also if referencing remote server, the Cmdlet checks local server • Always specify a partition, otherwise it chooses 0 • When adding a new partition, it must have the same number of replicas as existing partitions • After adding a new partition, the index WILL be repartitioned … amount of time it takes depends on index size • You can ADD a partition, but not DELETE • Clean up old topologies / components
Search Administration Farm Administration Diagnostics • Crawl Logs • Only way to directly remove item from index • Search Reports • Crawl Health • Query Health • Usage Reports
Search Administration Farm Administration Crawling • Content Sources • Crawl Schedules • Continuous OR Incremental crawl • Full crawl • Crawl Rules • Server Name Mappings • File Types • Index Reset • Pause / Resume • Crawler Impact Rules
Search Administration Farm Administration Queries and Results • Authoritative Pages • Result Sources • Query Rules • Query Client Types • Search Schema • Query Suggestions • Enabled / Disabled • Always / Never Suggest • Import AND Export • Search Dictionaries (Term Store Management) • Company Exclusion / Inclusion • Query Spelling Exclusion / Inclusion • Search Result Removal
Search Administration Farm Administration Search Schema (Managed / Crawled Properties) • Searchable • Advanced Searchable Settings • Full-text index • Weight group • Queryable • Retrievable • Allow Multiple Values • Refinable • Sortable • Safe for Anonymous • Alias • Token Normalization • Complete Matching • Company Name Extraction • Custom Entity Extraction
Search Administration Farm Administration – PowerShell Only ## Result Types ## $owner = Get-SPEnterpriseSearchOwner-Level Ssa $word = Get-SPEnterpriseSearchResultItemType–SearchApplication$ssa–Owner $owner | ?{$_.Name –eq“Microsoft Word”} $pdf = Get-SPEnterpriseSearchResultItemType–SearchApplication$ssa–Owner $owner | ?{$_.Name –eq“PDF”} $wordPDF= New-SPEnterpriseSearchResultItemType-SearchApplication$ssa-Name “WordPDF”–Owner $owner –ExistingResultItemType$pdf –ExistingResultItemTypeOwner$owner Set-SPEnterpriseSearchResultItemType–Identity $wordPDF–SearchApplication$ssa–owner $owner –RulePriority1 –DisplayTemplateUrl$word.DisplayTemplateUrl ## Thesaurus ## Import-SPEnterpriseSearchThesaurus-SearchApplication$ssa-FileName“\\server\share\thesaurus.csv”
Search Administration Site Administration Result Types • Map results to display templates Consumes farm settings, but allows site independent settings • Result Sources • Query Rules • Search Schema • New Managed Properties - Types: Text or Yes/No • Cannot make Sortable, Refinable, Multiple Values Search Settings • Search Center URL • Search Navigation Searchable Columns • Exclude site columns from indexing List Settings • Can flag a list to force re-index
Crawl Search Customizations Crawl Component Custom Connectors • Really means BCS • LOBSystemInstanceneeds ShowInSearchUIto show in Central Admin for content source • DisplayUriFieldset on method otherwise URL’s in search will start with bdc3:// • LastModifiedTimeStampFieldset and ChangedIdEnumeratorand DeletedIdEnumeratorimplemented if you want incremental crawls MSDN Reference: http://msdn.microsoft.com/en-us/library/gg294165.aspx
Content Processing Search Customizations Content Processing Component Content Enrichment Web Service • Web service call outside of SharePoint to: • Clean data • Remove from index • Augment properties • Configurations • Trigger Expression • Input Managed Properties • Output Managed Properties • Failure Mode • Debug Mode MSDN Reference: http://msdn.microsoft.com/en-us/library/jj163968.aspx
Content Processing Search Customizations Content Processing Component Content Enrichment Web Service • Registering the service in PowerShell $ssa = Get-SPEnterpriseSearchServiceApplication $cewsConfig= New-SPEnterpriseSearchContentEnrichmentConfiguration $cewsConfig.Endpoint = “http://externalserver/cews.svc” $cewsConfig.InputProperties = “Title”, “Company” $cewsConfig.OutputProperties = “Title”, “Company”, “Prop3” $cewsConfig.Trigger = ‘Contains(Company, “CoName”)’ $cewsConfig.FailureMode = “Error” $cewsConfig.DebugMode = $false Set-SPEnterpriseSearchContentEnrichmentConfiguration-SearchApplication$ssa-ContentEnrichmentConfiguration$cewsConfig
Content Processing Search Customizations Content Processing Component Custom Entity Extraction • Different Extraction types • Word Extraction • 5 Dictionaries • Microsoft.UserDictionaries.EntityExtraction.Custom.Word.n • Word Part Extraction • 5 Dictionaries • Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.n • Word Exact Extraction • One Dictionary • Microsoft.UserDictionaries.EntityExtraction.Custom.ExactWord.1 • Word Part Exact Extraction • One Dictionary • Microsoft.UserDictionaries.EntityExtraction.Custom.ExactWordPart.1 TechNet Reference: http://technet.microsoft.com/en-us/library/jj219480.aspx
Content Processing Search Customizations Content Processing Component Custom Entity Extraction • Sample File • Import through PowerShell ## Entity Extraction ## Import-SPEnterpriseSearchCustomExtractionDictionary-SearchApplication$ssa–DictionaryNameMicrosoft.UserDictionaries.EntityExtraction.Custom.Word.1 –FileName“\\server\share\dictionary.csv”
Content Processing Search Customizations Content Processing Component Custom Entity Extraction • Map in Central Administration
Query Processing Search Customizations Query Processing Component Ranking Models • Customize ranking based on YOUR logic • VERY complex… a LOT of math Registered in PowerShell $ssa = Get-SPEnterpriseSearchServiceApplication $owner = Get-SPEnterpriseSearchOwner-Level Ssa $customModel= [string](Get-Content .\CustomModel.xml) $newModel= New-SPEnterpriseSearchRankingModel–SearchApplication$ssa–Owner $owner–RankingModelXML$customModel MSDN Reference: http://msdn.microsoft.com/en-us/library/sharepoint/dn169052.aspx
Query Processing Search Customizations Query Processing Component Security Trimming • Pre • Augments claims • Processed BEFORE index lookup • Accurate refiner counts • Post • Secondary security checkpoint • Processed AFTER index lookup • Negatively effects refiner counts Needs to be deployed to GAC Registered in PowerShell $ssa = Get-SPEnterpriseSearchServiceApplication New-SPEnterpriseSearchSecurityTrimmer-ID “1”-SearchApplication$ssa-TypeName“<strong typed assembly>” MSDN Reference: http://msdn.microsoft.com/en-us/library/sharepoint/ee819930.aspx
Search Customizations UX User Experience Display Templates • New way to change search results • Good by XSLT • Get used to JavaScript • Available through Design Manager • Live in Master Page Gallery • .HTML file • .JS file (DO NOT TOUCH) MSDN Reference: http://msdn.microsoft.com/en-us/library/jj945138.aspx
Search Customizations UX User Experience Display Templates • Samples • Announcements • Events • Pages
Search Customizations UX User Experience Search Web Parts • Search Results • Query Builder • Auto Refine • Sorting • Query Rules • Inline testing • Content by Search • Search Results Web Part settings plus • Term Navigation • Tuned for use out of search center
How to contact me? • Brian Caauwe • SharePoint Consultant & Speaker • Email: bcaauwe@avtex.com • Twitter: @bcaauwe • Blog: http://blog.avtex.com/author/bcaauwe
References SharePoint 2013 training for IT pros • http://technet.microsoft.com/en-US/sharepoint/fp123606 Search Edition Features • http://technet.microsoft.com/en-us/library/cb36484c-0e8f-480e-be88-5daa8bf2d47d#bkmk_SearchfeaturesOnPrem BCS Connector • http://msdn.microsoft.com/en-us/library/gg294165.aspx Content Enrichment Web Service • http://msdn.microsoft.com/en-us/library/jj163968.aspx Custom Entity Extraction • http://technet.microsoft.com/en-us/library/jj219480.aspx Ranking Models • http://msdn.microsoft.com/en-us/library/sharepoint/dn169052.aspx Security Trimming • http://msdn.microsoft.com/en-us/library/sharepoint/ee819930.aspx Display Templates • http://msdn.microsoft.com/en-us/library/jj945138.aspx