About the SharePoint 2013 CEWS Listener for Aspire, how it works, features, etc.
SharePoint 2013 CEWS user access and other requirements
SharePoint 2013 CEWS configuration steps and examples
On the SharePoint box we need to configure CEWS to communicate with the our new Aspire endpoint
We need to specify which properties Aspire will be consuming and which properties we will be returning.
We also can configure how to handle the raw document.
Below are the PowerShell commands required to update the CEWS configuration:
# Get the Search Service Application for later
$ssa = Get-SPEnterpriseSearchServiceApplication
# Create a new CEWS config
$config = New-SPEnterpriseSearchContentEnrichmentConfiguration
# Set the endpoint value
$config.Endpoint = "<URLToWebService>"
# Set the Debug value
$config.DebugMode = $False
##############################################################
# IMPORTANT! if you set debug on then the next two parameters#
# are ignored! #
# Debug sends all managed properties instead of the ones you #
# are requesting. It will also ignore any response you send! #
##############################################################
# Set all properties you will send to CEWS,
# You can also use $config.InputProperties.add("xxx")
$config.InputProperties = "Author", "Filename", "Title"
# Set properties you will export Same process as import properties
$config.OutputProperties = "Author", "Title"
# Do you want the full document to be sent via CEWS (this is a relatively significant performance impact.) ?
$config.SendRawData = $True
# Set the max size of the raw document to 8MB or as desired.
$config.MaxRawDataSize = 8192
# Update the configuration sending the Config and The SSA you just defined
Set-SPEnterpriseSearchContentEnrichmentConfiguration -SearchApplication $ssa -ContentEnrichmentConfiguration $config
The configuration can be removed with:
# Get the Search Service Application for later
$ssa = Get-SPEnterpriseSearchServiceApplication
Remove-SPEnterpriseSearchContentEnrichmentConfiguration -SearchApplication $ssa
You can get the current configuration for review or update with:
Get-SPEnterpriseSearchContentEnrichmentConfiguration
The service cannot be browsed at http[s]://aspireserver:<port>/<endpoint> if Java 1.8 is installed. The best way to verify that the service is running is browsing http[s]://aspireserver:<port>/<endpoint>?wsdl which should return the CEWS wsdl. Despite the fact that the service is not browsable, it works as expected.
Questions and answers, including troubleshooting techniques
The Manage Properties defined in SharePoint 2010 have decimal as one of its data types, however in order to get working values of this type, the Aspire Groovy Script should be defined on the OnProcess satege with the PropertyOfdouble or the PropertyOfArraydouble in case of an array.