Publish to SharePoint 2013 Tutorial (Aspire 2)
For Information on Aspire 3.1 Click Here
- 1 SharePoint 2013 Security Pre-Trimmer
- 2 Aspire
- Install the Security Pre-Trimmer on all servers hosting a Query Processing component. Check this from SharePoint Central Administration > Manage Service Applications > Search Service Application.
- Make sure all firewalls to the Aspire server are open for the Aspire service port (default: 50505).
From the Deploy\scripts folder run DeployAspireSecurityTrimmer.ps1 in a SharePoint 2013 Management Shell (run as Administrator):
To make sure the security trimmer DLL is registered correctly, restart the SharePoint Search Host Controller service.
Step 1: Launch Aspire and open the Content Source Management Page
Launch Aspire (if it's not already running). See:
Step 2: Create a new Content Source
For this step please follow the step from the Configuration Tutorial of the connector of you choice, please refer to Connector list.
Make sure to enable Emit start job in the advanced properties (enabled by default). Otherwise, only incremental crawls will be triggered for the SharePoint Content Source and full crawls will not work.
Step 3: Add a new Publish to SP2013 to the Workflow
To add a Publisher to Sharepoint 2013 drag from the Publish to SP2103 rule from the Workflow Library and drop to the Workflow Tree where you want to add it. This will automatically open the Publish to SP2013 window for the configuration of the publisher.
Step 3a: Specify Publisher Information
In the Publish to SP2013 window, specify the connection information to publish to the SharePoint 2013.
- Enter the name of the publisher. (This name must be unique).
- Enter the description of the publisher that will be shown in the Workflow Tree.
- Repository Path: The url for the file share repository where the batches are going to be created.
- Enter the Domain for the file share repository.
- Enter the Username with permissions to write for the file share repository.
- Enter the Password of the username for the file share repository.
- XSL File Path: set to the default parameter to use the default XSL transformation file. To use a custom file, follow the instructions in Edit Xsl
- Security Type:
- Active Directory:
- Aspire Group Expansion: To use custom security trimming.
- Public Content: To mark all documents as public.
- Index Acl Full Name: To use the fullname (domain\username) as the ACL instead of just the username.
- Connect to SharePoint Notification Service: check this option if you have the Notification Service installed on SharePoint and you want to control the crawl of the batches from Aspire.
- Notification Service URL: The url of the service to which Aspire is going to send the notifications. Verify that the URL provided by the Notification Service installation is the correct one. In some cases you'll have to use the full quallified DNS name instead of hostname only or change the URL protocol (http/https). It should be the root site of an existing web application or the Central Administration web application site.
- Aspire BDC Service URL: The url of the AspireBDCService web service
- Enter the Search Service Application where you want to create the SP content sources.
- Enter the BDC Service Application where you want to create the bdc models.
- Enter the Domain to access the Notification Service.
- Enter the Username with access permission for the Notification Service.
- Enter the Password of the username for the Notification Service.
- Background thread frequency: time (in minutes) to wait before sending a new crawl notification until the repository is empty.
- Enable CleanUp: check this option to enable a background thread that will remove old batches from the intermediate repository.
- Execution Frequency: time (in minutes) in between each run of the clean up.
- Debug: Check if you want to run the publisher in debug mode.
- Click on the Add button.
Once you've clicked on the Add button, it will take a moment for Aspire to download all of the necessary components (the Jar files) from the Maven repository and load them into Aspire. Once that's done, the publisher will appear in the Workflow Tree.
For details on using the Workflow section, please refer to Workflow Introduction.
Step 4: Run a Test
- The SharePoint 2013 Endpoint must be up and running before performing this test.
Change the indexing mode to Test by clicking on the indexing mode (this will cycle through the values Incremental, Full and Test). After the test has run, these things will have happened on the SharePoint server:
- A directory [Content Source name] will have been created in the Shared Repository folder.
- An External Content Type [Content Source name]-Model-ECT will have been created in the SharePoint Business Data Service Application.
- A Content Source [Content Source name] will have been created in the SharePoint Search Service Application.
- Crawled Properties will have been created in the Business Data category for every
<field>entry found in the XML batch.
Step 5: Map Crawled Properties to Managed Properties
Per configuration default every Crawled Property in the Business Data category is mapped to the indexed document's full text. Thus, every indexed document is searchable per se. If you need to use different titles, store the size or assign file types, you need to adjust the property mappings.
Open SharePoint Central Administration and click Manage Service Applications, Search Service Application, Search Schema, Categories and Business Data.
Check the list of Crawled Properties and add a mapping to Managed Properties where needed. Make sure that your Crawled Property is in a good position in the mapping list in case the value of the first non-empty Crawled Property is used to populate the Managed Property.