AnalyticsRecommendationScriptWebPart class
The AnalyticsRecommendationScriptWebPart is a Script Web Part base class introduced in SharePoint Server 2013. This Script Web Part renders the refinement of a managed navigation property in the search results.
A managed navigation property refers to the managed property in the search index that contains managed metadata terms which are used to tag items with, and then used for managed navigation on the site.
For example, if you have a navigation term set containing the path “/Products/Clothes/Jeans”, and these terms are used to tag List Items (SPListItem). The list column you are tagging in is then mapped to a refineable managed property Refinable in the search index. Now, you can use the AnalyticsRecommendationScriptWebPart to navigate through your navigation term set and at the same time filter search results with the same terms.
Inheritance hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Panel
System.Web.UI.WebControls.WebParts.Part
System.Web.UI.WebControls.WebParts.WebPart
Microsoft.SharePoint.WebPartPages.WebPart
Microsoft.Office.Server.Search.WebControls.AnalyticsRecommendationScriptWebPart
Microsoft.Office.Server.Search.WebControls.AnalyticsHashTagWebPart
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<ScriptDescriptorComponentTypeAttribute("Srch.AnalyticsRecommendation")> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class AnalyticsRecommendationScriptWebPart _
Inherits WebPart
'Usage
Dim instance As AnalyticsRecommendationScriptWebPart
[ScriptDescriptorComponentTypeAttribute("Srch.AnalyticsRecommendation")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class AnalyticsRecommendationScriptWebPart : WebPart
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.