New-SPEnterpriseSearchCrawlExtension

Search Service 응용 프로그램에 확장 규칙을 추가합니다.

Syntax

New-SPEnterpriseSearchCrawlExtension
   [[-Name] <String>]
   -SearchApplication <SearchServiceApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-SPEnterpriseSearchCrawlExtension cmdlet adds a file name extension to the list of file types that you want to include in the index. After a new IFilter is registered, run this cmdlet so that the new file type will be crawled. If a file type is added without registering an associated IFilter, only the file properties will be crawled and included in the index. After you run this cmdlet, you must run a full crawl of all content sources that might contain this file type to guarantee that files of this type are in the index.

SharePoint 제품용 Windows PowerShell에 대한 사용 권한 및 최신 정보는 SharePoint Server Cmdlets를 참조하세요.

예제

---------------예제---------------

$ssa = Get-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchCrawlExtension -Name "pdf" -SearchApplication $ssa

이 예제에서는 인덱스에 포함할 파일 이름 확장명 목록에 PDF 파일 형식을 추가합니다.

매개 변수

-AssignmentCollection

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

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Name

새 파일 이름 확장명을 지정합니다.

Type:String
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, 유효한 검색 애플리케이션 이름(예: SearchApp1) 또는 유효한 SearchServiceApplication 개체 인스턴스의 유효한 GUID여야 합니다.

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

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition