Home » Microsoft » 70-489 » Which code segment should you insert at line 04?
You have a SharePoint farm. You create a web service that connects to an extension point in the Search service. The web service processes string content and returns the string in all capitalized letters.
The web service includes the properties in the following table.
You start the SharePoint Management Shell.
You create the following Windows PowerShell cmdlet (Line numbers are included for reference only )
You need to complete the Windows PowerShell cmdlet to register the Content Enrichment service.
Which code segment should you insert at line 04?
A.
B.
C.
D.
Correct Answer: C
Explanation/Reference:
InputProperties gets or sets the list of properties that the external service expects.
OutputProperties gets or sets the list of properties that the external service outputs. These will overwrite the original value of that property as it is propagated through the Content Processing Component.
$ssa = Get-SPEnterpriseSearchServiceApplication
$config = New-SPEnterpriseSearchContentEnrichmentConfiguration
$config.Endpoint = http://Site_URL/ContentEnrichmentService.svc
$config.InputProperties = "Author", "Filename"
$config.OutputProperties = "Author"
$config.SendRawData = $True
$config.MaxRawDataSize = 8192
Set-SPEnterpriseSearchContentEnrichmentConfiguration -SearchApplication $ssa -ContentEnrichmentConfiguration $config
http://msdn.microsoft.com/en-us/library/jj163982.aspx
http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.administration.contentprocessing.contentenrichmentconfiguration.aspx
http://technet.microsoft.com/en-us/library/jj219502.aspx
http://msdn.microsoft.com/en-us/library/jj163968.aspx
http://technet.microsoft.com/en-us/library/jj219659.aspx