Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Get-SPEnterpriseSearchResultItemType

SharePoint 2013

Published: July 16, 2012

Applies to:  SharePoint Server 2013 Enterprise | SharePoint Server 2013 Standard | SharePoint Foundation 2013 

Retrieves result item types.

Get-SPEnterpriseSearchResultItemType [[-Identity] <ResultItemTypePipeBind>] -Owner <SearchObjectOwner> [-AssignmentCollection <SPAssignmentCollection>] [-SearchApplication <SearchServiceApplicationPipeBind>] [-SearchApplicationProxy <SearchServiceApplicationProxyPipeBind>]

Parameters

Parameter Required Type Description

Identity

Optional

Microsoft.Office.Server.Search.Cmdlet.ResultItemTypePipeBind

Specifies the result item type to update. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh.

Owner

Required

Microsoft.Office.Server.Search.Administration.SearchObjectOwner

Specifies the search object owner that defines the scope at which the result item type is created.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

note Note:

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

SearchApplication

Optional

Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind

Specifies the name of the search application. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid search application name (for example, SearchApp1); or an instance of a valid SearchServiceApplication object.

SearchApplicationProxy

Optional

Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationProxyPipeBind

Specifies the proxy of the search application that contains the result item type. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid search application proxy name (for example, SearchAppProxy1); or an instance of a valid SearchServiceApplicationProxy object.

Detailed Description

The Get-SPEnterpriseSearchResultItemType cmdlet retrieves the result item types that exist for the specified owner.

Result item types enable you to change the look of search results based on the type of result. You start by defining a collection of rules, which will be evaluated against the properties of results. Then you define the display template to use for rendering that type of result. Once you have created the result item type, results matching the rules of the result item type will render using the specified display template.

Example use cases:

- Change the look of results for a particular file name extension, for example Word documents.

- Change the look of a particular content type in search results.

- Change the look of results from a particular author.

- Add a result action to results from a particular result source as part of a custom search application.

Input Types

Return Types

--------EXAMPLE--------

$ssa = Get-SPEnterpriseSearchServiceApplication$tenantOwner = Get-SPEnterpriseSearchOwner -Level SPSiteGet-SPEnterpriseSearchResultItemType -Owner $tenantOwner -SearchApplication $ssa

This example retrieves the result item types that are defined for the owner referenced by $tenantowner for the search application referenced by $ssa. Although SearchApplication and SearchApplicationProxy are optional parameters, this cmdlet requires use of one of them.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.