Thursday, March 23, 2017

Enterprise Search - SharePoint 2013

Enterprise Search – SharePoint 2013

v What’s New in Enterprise Search

ü  Single Search Architecture
SharePoint 2013 is based on a single search architecture, which includes a single search service application. FAST search and FAST technology is now native to the product, not a separate product. This is a complete re-architecture, and many of the components are brand-new or revised.
ü Search Center and Search UI
-          The new look for SharePoint 2013 is also displayed in the Search Center.
-          The Search Center includes deep refiners with exact counts, and document previews with the new “take a look inside” functionality available in the new hover panel with the new Office Web Applications.
-          Search Verticals (new name for what used to be the tabbed Interface)
-          Four new web parts
ü  Relevancy Improvements
SharePoint 2013 improves relevance in areas such as freshness of search results, linguistics, and document parsing.

v Search Architecture

SharePoint 2013 search has been re-architectured , and the goal of achieving a single enterprise search platform has introduced a number of changes. You can consider SharePoint 2013 search to be a combination of SharePoint 2010 search, FAST search for SharePoint 2010, and FAST technology.
The Search topology has several key improvements:
-          Separate crawl and indexing processes
-          A new analytics process that provides search and usage analyses, including link analysis and recommendations
-          The entire index is stored locally on disk, and it no longer uses the property database
-          Search is scalable in two dimensions, content and query load
-          The administration component can be made fault tolerant
-          Native support for repartitioning the index as part of scaling out the topology

ü  Topology
The topology can be broken down into search components and databases that work together to provide search capability as shown below.
In a multi-server farm, these components reside on application servers, and the databases exist on SQL server database servers.
The Search components can be categorized in to five groups or processes:
Crawl and content – Includes the crawl and content processing components and the crawl database
Analytics – Includes the analytics processing component, and the links and analytics reporting databases
Index – Includes the index component, index partition, and index replica
Query – Includes the query processing component
Administration – Includes the administration component and the administration database



ü  Managing the crawled process and crawled properties
-          The Whole process begins with the crawl component, which is also referred to as the Crawler.
-          This component crawls the content sources, and it delivers the crawled content and associated metadata to the content processing component.
-          To manage crawl volume and performance, you can simultaneously crawl content using multiple crawl components.
-          As the crawler processes data, it caches the content locally in preparation for sending content to the content processing unit.
-          The crawl component uses one or more crawl databases to temporarily store information about crawled items and to track crawl history.
-          There is no longer a one-to-one mapping of the crawl database to crawler as in SharePoint 2010; each crawl database can be associated with one or more crawlers, so you can scale them independently.
-          To support the need for a “fresher” index, SharePoint 2013 includes a new crawl type, the continuous crawl. The continuous crawl is applicable only to SharePoint content sources, and is a new option you can choose when you create a new content source.
-          Continuous crawl is like the incremental crawl but without the need to be scheduled. With continuous crawl, changed content is crawled every 15 minutes by default, but the frequency is configurable.
-          As in SharePoint 2010, all crawler configurations are stored in administration database.
-          The content and metadata that has been crawled and extracted from a document or URL are represented as crawled properties. New crawled properties are created after each new crawl, as new content is added to the enterprise. Crawled properties are passed to the content processing component for further analysis.



ü  Content Processing
-          This is a very specialized node in the search architecture, whose purpose is to analyze and process the data and metadata that will be included in the index.
-          The processing node transforms the crawled items and crawled properties using language detection, document parsing, dictionaries, property mapping and entity extraction.
-          This component is also responsible for mapping crawled properties to managed properties.
-          When a user performs a search, and clicks a result, the click-through information is also stored unprocessed in the link database.
-          All this raw data is subsequently analyzed by the analytics processing component, which updates the index with relevancy information.
-          Once completed, the transformed data is then sent to the index component.
-          Content processing configurations are stored in the search administration database.
-          The content processing component is also highly extensible, by using the web services that would provide information about how content should be processed.

Managed Properties
-          Crawled properties are mapped to managed properties to include the content and metadata in the search index.
-          Only managed properties are included in the index; therefore, users can search only on managed properties.
-          Managed properties have attributes, which determine how the contents are shown in the search results.
-          Managed properties also have associated attributes, also referred to as properties; yes, the managed properties have properties.
-          The list of default managed properties, also referred as search schema or index schema, contains the managed properties, their associated properties, and the mapping between crawled properties and managed properties.
-          You can edit the search schema yourself, manually mapping crawled properties to managed properties, and configuring property settings.
-          The content-processing component utilizes this schema to perform any necessary mapping.
-          A single managed property can be mapped to more than one crawled property.
-          You can also map a single crawled property to multiple managed properties.

Search Schema
The search schema is stored in the search administration database, and the schema web page, which is called search service application: Managed properties, shown in the below picture

This page is available from the search service application: Search Administration page in Central Administration, using the search schema link in the Queries and Results section.
Key points to remember about the search schema include the following:
-          It contains the mapping between crawled properties and managed properties, including the order of mapping for those cases that have mapped multiple crawled properties.
-          It maintains the settings for which index stores the managed property.
-          It contains the settings or properties for each of the different managed properties.
-          Site collection administrators can change the search schema for a particular site collection using the site settings page, and customize the search experience for that specific site collection. This is a new capability in SharePoint 2013.
-          It is possible to have multiple search schemas.

ü  Analytics Processing
This is a brand-new component for the search architecture. Its purpose is to analyze the content and how users interact with the content to improve search relevance, create search reports and recommendations, and create deep links.
The analytics component analyzes two different types of information:
·         Search Analytics – Information from crawled items that is stored in the index
·         Usage Analytics – Information about how users interact with the search results, such as how many times an item is viewed.
The Web Analytics capability in SharePoint 2010 has been discontinued, replaced by the analytics processing component in SharePoint 2013. This change was necessary to increase performance and scalability. The analytics component provides additional capabilities such as report of top items, recommendations, and dynamic improvement of search result relevancy.

ü  Index Processing
The index is the key to providing the best search experience, as its content determines what users find when executing search queries. SharePoint 2013 Search is a data access technology, because it provides access to information beyond just the search box query. The index component receives crawled and processed content and this information is added to the search index. This component also handles incoming queries, retrieves information from the search index, and sends back the result set to the query processing component.
The index processing architecture can be divided into:
·         Index partition
·         Index replica
·         Index component
SharePoint 2013 stores all the index on disk. Search capability is scaled using index partitions and index replicas; the “row and columns” terminology from SharePoint 2010 is gone.

ü  Query Processing, Query Rules and Result Sources
The query-processing component analyzes incoming queries, which are sent to the index component, which returns a set of results. This component performs linguistic analysis of the query, including word-breaking, which determines the boundaries of the words in the query, and stemming, which defines the base or root form of the words in the query. Once the query is processed, the query is submitted to the index component, which returns results from the index. The results are returned to the query component, where they are further processed before returning the results to the search front end.

Query rules and result sources are new features in SharePoint 2013. Query rules can be used to conditionally promote certain results, display the results in blocks, and tune relevancy. Results sources are used to scope the search results.

ü  Administration
This component is responsible for running processes that are essential to search, including new component provisioning. The search administration database stores search configuration data, such as the topology, crawl rules, and the mappings between crawled and managed properties. Each search service application can have only one search administration component. The current search configuration is accessible through central administration, but modifying the search topology requires PowerShell.

This completes the architecture overview. As you have seen, several enhancements have been made to the search architecture, and these changes have resulted in a very powerful search capability.


Friday, March 17, 2017

What's New in SharePoint 2013?

What’s New in SharePoint 2013?

Installation Changes
The installation process is not radically changed from the SharePoint 2010 installation process. If you can install SharePoint 2010, with a little effort and a small amount of stumbling, you can install SharePoint 2013 too.
  •          System Requirements
  •          The installation process
  •         Upgrading from SharePoint 2010
  •          Patching


Central Administration
The Central Administration site is like home base for SharePoint administrators, often called just Central Admin. Central Admin in SharePoint 2013 bears a very striking resemblance to Central Admin in SharePoint 2010. They look much alike, that SharePoint 2013’s Central Admin could probably use SharePoint 2010’s Central Admin’s ID to get into bars if it had to.


Some differences are mentioned below:
·         Branding
·         Layout changes that are universal to SharePoint 2013
-          Flat look and the location of the Site Settings gear
·         Apps are new to SharePoint 2013
Other than that, all those Central Admin navigating skills you honed in SharePoint 2010 transfer directly over to SharePoint 2013. Administrators of SharePoint 2013 will be glad to find that Central Administration retains its familiar style of being wide rather than deep.

Service Applications
The service application architecture has not changed as shown in the ‘Manage Service Applications’ dialog in the figure

List of the new Service Applications in SharePoint 2013
·         Access Services
·         App Management
·         Machine Translation
·         Work Management
·         PowerPoint Conversion

Search Service Application
The Search Service Application has received some improvements in SharePoint 2013, rebuilt to be better and stronger. Microsoft rebuilt the SharePoint Search service application and properly integrated FAST technology in to it. The interface in Central Admin is roughly the same, as in SharePoint 2010. There are additional links for the new functionality that was added. New SharePoint 2013 search Administration interface is shown below


List of six search components and what they do:
·         Index – Stores and replicates portions of the search index.
·         Query Processing – Responds to the user search queries and provides results
·         Search Administration – The Search ringleader, this component controls the other components. There can be only one Search Administration component per Search Service application
·         Crawl – Crawls the content sources and passes on their contents to the Content Procession components
·         Content Processing – Processes the documents retrieved from the Crawl component and writes the results to the Index component.
·         Analytics (new component in SharePoint 2013) – Creates usage analytics and search analytic reports.
“Changing the Search topology can no longer be done in the comfort of Central Admin. That’s now a task that only PowerShell can accomplish.”

Managed Metadata Service Application
Managed Metadata was expanded to include support for custom navigation. This capability enables you to design and store complex global navigation structures in the Managed Metadata service application. These navigation structures are stored like regular metadata, making it easier to work with them.

User Profile Service Application
User Profile service application now supports quicker synchronization with Active Directory. Microsoft has added back the Active Directory Import connection that was used in SharePoint 2007 did. It’s just read-only, but its faster than the FIM-based profile synchronization of SharePoint 2010, and it supports LDAP filters, as of SharePoint 2007 did. This is great news for smaller shops that are not ready to take advantage of all the functionality offered by the User Profile Service.

Office Web Apps (OWAs)
In SharePoint 2010, You need to install the Office Web Apps(OWAs) on your SharePoint Servers and expose them as Service Applications.
In SharePoint 2013, the OWAs are now their own product, and they must be installed on their own, non-SharePoint Server. The OWAs have increased functionality, even in SharePoint. They can give you document previews right in your document libraries, for instance. You can also use the OWAs to render office documents in Outlook Anywhere in Exchange 2013.

Claims and Authentication
One of the more significant changes in SharePoint 2013 is the emphasis on Claims- based authentication(CBA). CBA is no longer just recommended, it’s the default authentication provider for SharePoint. When a new web application is created in Central Administration, classic-mode authentication is no longer even an option. You can use any authentication type you want if it’s claims-based.



However, classic-mode authentication, while discouraged, is still available using PowerShell cmdlets.
If you want to give user logins for SharePoint but not add them to your corporate Active Directory. CBA can do that. Your users can use any authentication store that supports Security Assertions Markup Language(SAML) claims.
Example: Microsoft’s Live ID and OAuth, which is used by Google and Facebook.

Managing SharePoint 2013 with Windows PowerShell
SharePoint 2013’s command-line interface continues to be PowerShell, though now it is based on PowerShell V3.
PowerShell V3 Improvements include (SharePoint 2013):
  •          Integrated scripting environment(ISE) that is much improved over its V2 version.
  •         PowerShell Web Access, which provides a way to execute PowerShell commands in a web browser.
  •          Bevy of commands and syntax improvements
  •         SharePoint Management Console includes nearly 300 new cmdlets


SharePoint Apps
The most significant change in SharePoint 2013 is the addition of SharePoint apps
.
Benefits - Administrators:
  •          Apps provide another way to add functionality to your SharePoint farm.
  •          Apps can run on SharePoint, another server entirely or even in the client browser.
  •          App Management and Subscription Settings service applications should be created and configured.


Benefits - Developers:
  •  Money
  •  Includes a public SharePoint App market where developers can publish and sell their apps to users who want to add them to their farms. Their apps can also be sold on Office365.


Workflow Manager
Out of the box, SharePoint 2013 supports all workflow functionality that existed in SharePoint 2010. While SharePoint 2013 natively supports SharePoint 2010 workflow, there are two additional workflow options: SharePoint 2013 workflows and Project Server 2013 workflows.
The SharePoint 2013 Workflows are available after you install the SharePoint 2013 Workflow Manager, which is an additional download. The Workflow Manager doesn’t need to be installed on a SharePoint server, and for performance reasons it probably shouldn’t be. After you have successfully installed the Workflow Manager, you are only one carefully crafted PowerShell cmdlet away from being able to use the SharePoint 2013 Workflows.
If you install Project Server 2013 workflows, you’ll obtain even more workflow options.

New User Experience
·         Faster
·         Prettier

Getting Social
Here are the enhancements made to the social experience in SharePoint 2013:
  •          Much like Facebook, users can post status updates to let coworkers know what they are up to.
  •          As with Facebook, users can us the @ sign to mentions coworkers, which makes it easy to find out who is talking about you.
  •         These status updates can fellow users and trends, and you can tag threads with keywords using the hashtag (#).
  •          SharePoint also supports users posting pictures to their newsfeed.
  •          You can also follow individual documents. You can also post comments and create threads about individual documents.  

Wednesday, March 8, 2017

Troubleshooting SharePoint

Troubleshooting SharePoint
Troubleshooting?



  
The Unified Logging Service
The Unified Logging Service (ULS) is the service that sends messages to the Windows Event Logs and to the SharePoint trace logs. Trace logs referred to as the ULS logs and it is the only place ULS information surfaces.
 




a)     Trace Logs
Trace logs contains only SharePoint-specific information, but much of it is about normal operations, not specifically errors. By default, the trace logs are found in
C:\Program Files\Common Files\Microsoft shared\Web Server Extensions\15\LOGS

The log files themselves have names like SERVERNAME-20121026-1200.log.

2012 – indicating year
10 – for the tenth month
26 – for the 26th day
12 – for the 12th hour

b)    Windows Event Logs
As ULS tends to send messages to the Windows Event logs only when something serious happens, they are a good place to start looking for clues. To open the Event Viewer for Windows Server, go to the start panel that has all the Windows tiles and begin typing Event Viewer until it appears in the apps list.

The Correlation ID
They are the GUIDs (A Globally Unique identifier that’s 32 hexadecimal characters long) that sometimes appear when an error occurs.

To get the meat of the error message, you have click the Technical Details link. When you do, you are rewarded with a Correlation ID as well as the exact time of the error. Both details can be used to hone in on all the log events that led up to the error. In this case, you also received an error message indicating exactly what the problem is, but SharePoint is not always that generous.

Tools for Troubleshooting
a)     Central Administration
Monitoring->Review Problems and Solutions





b)    Log file data location
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS



c)     Event Viewer
Start->Run>eventvwr



Typical SharePoint error looks like in the Event Viewer when no filters are applied.




Details tab that is displayed when you double-click on a particular Event Viewer entry 



d)    ULSLogViewer
¡  Open ULS Viewer (Hit CTRL + U for a shortcut)
¡  Select File -> Open From -> ULS
¡  Point to the SharePoint Logs
¡  Refresh the SharePoint page that is causing the error
¡  Match the error Correlation ID to the Correlation column in ULS viewer



e)     SQL Logs



f)      Developer Dashboard
The Developer Dashboard can’t be activated from SharePoint Central Administration. Instead, the best method is to use PowerShell.

To enable the developer dashboard, open the SharePoint 2013 Management Shell and enter the following commands:

$devdash = [Microsoft.SharePoint. Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$devdash.DisplayLevel = “On”
$devdash.Update()

To disable the Dashboard after you are finished using it, simply use the preceding commands but replace
 
$devdash.DisplayLevel = “On” with $devdash.DisplayLevel = “Off”

You can also use the following stsadm commandsif you insist on doing things the uncool way:

Stsadm -o setproperty -pn developer-dashboard -pv on
Stsadm -o setproperty -pn developer-dashboard -pv off




g)     Performance Monitor
¡  View performance in Real Time and log data for later analysis.
¡  Open Server Manager
¡  Select Tools
¡  Select Performance Monitor
¡  Right Clock the graph and select Add counters and begin tracking performance





h)    PowerShell
¡  Merge-SPLogFile –Path “c:\error.log” –correlation “cid”
¡  SPDiagnosticsLog (Get,Set)
¡  Identify the problem
¡  Get-SPLogEvent | ?{$_.Correlation –eq “CID”} |
¡  Ft EventID,Message | Out-GridView
¡  Filter by Area,EventID,Level,MEssage




Common Solutions
·         Grant Access to User
ü  Set-SPSiteAdministration –OwnerAlias <contoso>\<userid>
·         Flush DNS on server to solve network issues.
·         Add the website to trusted sites
·         Web Part Error:
ü  Web Parts Maintenance Page [?contents=1]
ü  Remove Web/App Part

More Troubleshooting Techniques
As you spend more time troubleshooting SharePoint, you pick up little techniques here and there that help you get to the bottom of an issue.
·         Using Fiddler to Watch your Web Traffic
·         Creating a New Web Application
·         Making all your Service Accounts Local Administrators
·         Checking for failed Timr jobs
·         Starting Fresh with IISReset
·         Reboots for Everyone
·         Shoot Trouble Before it Happens