Get-SPEnterpriseSearchFileFormat

检索所有可分析的文件格式。

语法

Get-SPEnterpriseSearchFileFormat
   [[-Identity] <DocumentParserFileFormatPipeBind>]
   -SearchApplication <SearchServiceApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

说明

Get-SPEnterpriseSearchFileFormat cmdlet 返回给定格式 ID 的文件格式信息。 如果未提供格式 ID,则 cmdlet 将返回所有可分析的文件格式。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

--------------示例 1--------------

$ssa = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchFileFormat -SearchApplication $ssa

本示例使用Get-SPEnterpriseSearchFileFormat检索由$ssa引用的搜索服务应用程序中的所有可分析文件格式。

--------------示例 2--------------

$ssa = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchFileFormat -SearchApplication $ssa -Identity DOCX

本示例使用Get-SPEnterpriseSearchFileFormat cmdlet 检索所引用 $ssa的搜索服务应用程序中有关文件格式 DOCX 的信息。

参数

-Identity

指定要为其检索文件格式信息的格式 ID。

Type:DocumentParserFileFormatPipeBind
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchApplication

指定要检索文件格式信息的搜索应用程序。

键入的值必须是 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;有效的搜索应用程序名称(如 SearchApp1);或有效 SearchServiceApplication 对象的实例。

Type:SearchServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

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.

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition